Bug 13081 - Assertion fail /bfd/elf.c:6668; internal error, aborting...
Summary: Assertion fail /bfd/elf.c:6668; internal error, aborting...
Status: NEW
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.22
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
: 15127 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-08-12 03:12 UTC by adriafarres
Modified: 2013-02-09 17:37 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description adriafarres 2011-08-12 03:12:36 UTC
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?
Comment 1 H.J. Lu 2011-08-12 14:31:17 UTC
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]$
Comment 2 H.J. Lu 2011-08-12 14:32:51 UTC
(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)
Comment 3 H.J. Lu 2013-02-09 17:37:55 UTC
*** Bug 15127 has been marked as a duplicate of this bug. ***