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.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to