[Touch-packages] [Bug 1051156] Re: 'as' fails on inline assembly

2014-10-16 Thread Matthias Klose
** Bug watch added: Sourceware.org Bugzilla #17493
   http://sourceware.org/bugzilla/show_bug.cgi?id=17493

** Also affects: binutils via
   http://sourceware.org/bugzilla/show_bug.cgi?id=17493
   Importance: Unknown
   Status: Unknown

** Changed in: binutils (Ubuntu)
   Importance: Undecided = Low

** Changed in: binutils (Ubuntu)
   Status: New = Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to binutils in Ubuntu.
https://bugs.launchpad.net/bugs/1051156

Title:
  'as' fails on inline assembly

Status in binutils:
  Unknown
Status in “binutils” package in Ubuntu:
  Triaged

Bug description:
  There was a problem in GCC when I added some inline assembly.

  
  as: BFD (GNU Binutils for Ubuntu) 2.22 assertion fail ../../bfd/elf.c:6715
  as: BFD (GNU Binutils for Ubuntu) 2.22 internal error, aborting at 
../../bfd/elfcode.h line 229 in bfd_elf32_swap_symbol_out

  as: Please report this bug.

  ..

  inline assembly:

  
  __asm__(
  movl $(%ebx+4), %eax; /* getting the operand in %eax */
  movl $0, %ebx; /* ebx is the counter iand initializing it */
  _start:
  cmpl $0, %eax;
  jz _final ; /* if the comparison is 0 then jump to _final 
label */
  movl %eax, %ecx;
  andl $1, %ecx;
  cmpl $0, %ecx;
  jz _skipadd;
  addl $1, %ebx;   /* if the last bit is set increment the 
counter */

  _skipadd:
  shrl $1, %eax; /* dividing the number by 2 */
  jmp _start;

  _final:/* final location */
  /* now we have to restore the registers */
  movl %eax, %ebx;   /* storing the result in %eax */
  ret;
   );

  
  .

  
  System information
  naveen@naveen-ubuntu:/$ uname -a
  Linux naveen-ubuntu 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 
UTC 2012 i686 i686 i386 GNU/Linux

To manage notifications about this bug go to:
https://bugs.launchpad.net/binutils/+bug/1051156/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1051156] Re: 'as' fails on inline assembly

2014-10-16 Thread Matthias Klose
fixed version shows:

$ gcc -c 173930.c 
173930.c: Assembler messages:
173930.c:15: Error: illegal immediate register operand (%ebx+4)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to binutils in Ubuntu.
https://bugs.launchpad.net/bugs/1051156

Title:
  'as' fails on inline assembly

Status in binutils:
  Unknown
Status in “binutils” package in Ubuntu:
  Triaged

Bug description:
  There was a problem in GCC when I added some inline assembly.

  
  as: BFD (GNU Binutils for Ubuntu) 2.22 assertion fail ../../bfd/elf.c:6715
  as: BFD (GNU Binutils for Ubuntu) 2.22 internal error, aborting at 
../../bfd/elfcode.h line 229 in bfd_elf32_swap_symbol_out

  as: Please report this bug.

  ..

  inline assembly:

  
  __asm__(
  movl $(%ebx+4), %eax; /* getting the operand in %eax */
  movl $0, %ebx; /* ebx is the counter iand initializing it */
  _start:
  cmpl $0, %eax;
  jz _final ; /* if the comparison is 0 then jump to _final 
label */
  movl %eax, %ecx;
  andl $1, %ecx;
  cmpl $0, %ecx;
  jz _skipadd;
  addl $1, %ebx;   /* if the last bit is set increment the 
counter */

  _skipadd:
  shrl $1, %eax; /* dividing the number by 2 */
  jmp _start;

  _final:/* final location */
  /* now we have to restore the registers */
  movl %eax, %ebx;   /* storing the result in %eax */
  ret;
   );

  
  .

  
  System information
  naveen@naveen-ubuntu:/$ uname -a
  Linux naveen-ubuntu 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 
UTC 2012 i686 i686 i386 GNU/Linux

To manage notifications about this bug go to:
https://bugs.launchpad.net/binutils/+bug/1051156/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1051156] Re: 'as' fails on inline assembly

2014-10-16 Thread Launchpad Bug Tracker
This bug was fixed in the package binutils - 2.24.90.20141014-0ubuntu3

---
binutils (2.24.90.20141014-0ubuntu3) utopic; urgency=medium

  * Pick patches from the trunk:
- Fix PR ld/17492. LP: #882353.
- Fix PR gas/17493. LP: #1051156.
 -- Matthias Klose d...@ubuntu.com   Thu, 16 Oct 2014 15:32:59 +0200

** Changed in: binutils (Ubuntu)
   Status: Triaged = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to binutils in Ubuntu.
https://bugs.launchpad.net/bugs/1051156

Title:
  'as' fails on inline assembly

Status in binutils:
  Unknown
Status in “binutils” package in Ubuntu:
  Fix Released

Bug description:
  There was a problem in GCC when I added some inline assembly.

  
  as: BFD (GNU Binutils for Ubuntu) 2.22 assertion fail ../../bfd/elf.c:6715
  as: BFD (GNU Binutils for Ubuntu) 2.22 internal error, aborting at 
../../bfd/elfcode.h line 229 in bfd_elf32_swap_symbol_out

  as: Please report this bug.

  ..

  inline assembly:

  
  __asm__(
  movl $(%ebx+4), %eax; /* getting the operand in %eax */
  movl $0, %ebx; /* ebx is the counter iand initializing it */
  _start:
  cmpl $0, %eax;
  jz _final ; /* if the comparison is 0 then jump to _final 
label */
  movl %eax, %ecx;
  andl $1, %ecx;
  cmpl $0, %ecx;
  jz _skipadd;
  addl $1, %ebx;   /* if the last bit is set increment the 
counter */

  _skipadd:
  shrl $1, %eax; /* dividing the number by 2 */
  jmp _start;

  _final:/* final location */
  /* now we have to restore the registers */
  movl %eax, %ebx;   /* storing the result in %eax */
  ret;
   );

  
  .

  
  System information
  naveen@naveen-ubuntu:/$ uname -a
  Linux naveen-ubuntu 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 
UTC 2012 i686 i686 i386 GNU/Linux

To manage notifications about this bug go to:
https://bugs.launchpad.net/binutils/+bug/1051156/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp