The full message I am receiving is: ----- as: BFD (GNU Binutils for Ubuntu) 2.21.0.20110327 assertion fail ../../bfd/elf.c:6668 as: BFD (GNU Binutils for Ubuntu) 2.21.0.20110327 internal error, aborting at ../../bfd/elfcode.h line 228 in bfd_elf32_swap_symbol_out as: Please report this bug. ----- Okay. First of all, I am sure I am writting the syntaxis bad, so actually it is not exactly a bug. I am learning assembly and, trying getting the adress, I got was I have shown you. The code I used its the following: .section .data etiqueta: .int 7, 14, 21, 28, 35, 42, 39, 56, 63, 70 .section .text .globl _start _start: movl $etiqueta, %eax movl 4(%eax), %ebx movl (%eax)+4, %ebx #As you can see, this is not correct. I was just trying. Regards! PS: By the way,having an address in the %eax reg, how can I get the adress situated X bytes to the right/left?
A simpler testcase: [hjl@gnu-6 tmp]$ cat x.s movl (%eax)+4, %ebx [hjl@gnu-6 tmp]$ gcc -c x.s as: BFD (GNU Binutils) 2.21.53.20110810 assertion fail /export/gnu/import/git/binutils/bfd/elf.c:6702 as: BFD (GNU Binutils) 2.21.53.20110810 internal error, aborting at /export/gnu/import/git/binutils/bfd/elfcode.h line 225 in bfd_elf64_swap_symbol_out as: Please report this bug. [hjl@gnu-6 tmp]$
(In reply to comment #0) > PS: By the way,having an address in the %eax reg, how can I get the adress > situated X bytes to the right/left? X(%eax) and -X(%eax)
*** Bug 15127 has been marked as a duplicate of this bug. ***