bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/13023] gold misinterprets dot assignments in sections


From: luto at mit dot edu
Subject: [Bug gold/13023] gold misinterprets dot assignments in sections
Date: Sat, 23 Jul 2011 18:50:01 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=13023

--- Comment #2 from Andy Lutomirski <luto at mit dot edu> 2011-07-23 18:49:53 
UTC ---
To reproduce, save 'part 1' as foo.c and 'part 2' as foo.lds.  Then do:

$ gcc -c foo.c
$ ld.gold -o foo2.o -T foo.lds foo.o
ld.gold: error: dot may not move backward

or

$ ld.bfd -o foo2.o -T foo.lds foo.o
[works fine]

Alternatively, change the dot assignment to:
. = 0x1010;

and watch gold put the symbol b in the wrong place.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]