bash-3.00$ cat y.s
.set x, y
bash-3.00$ as -o y.o y.s
bash-3.00$ readelf -s y.o
Symbol table '.symtab' contains 5 entries:
Num:Value Size TypeBind Vis Ndx Name
0: 0 NOTYPE LOCAL DEFAULT UND
1: 0 SECTION LOCAL DEFAULT1
2: 0
Gcc was broken due to a back checkin:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21070
Linker did complain, but it kept going and generated a bad output.
I think linker should abort when there is reference in non-debug
section to discarded section.
--
Summary: Linker should abort wh
--- Additional Comments From amodra at bigpond dot net dot au 2005-04-18
00:53 ---
I don't think gas should warn in this case. Setting a symbol to an expression
involving undefined symbols is quite a reasonable thing to do, so long as the
expression is resolved later to something that c