[Bug gas/857] New: Gas doesn't warn ".set x, y" when "y' is undefined

2005-04-17 Thread hjl at lucon dot org
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

[Bug ld/858] New: Linker should abort when there is reference to discarded section

2005-04-17 Thread hjl at lucon dot org
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

[Bug gas/857] Gas doesn't warn ".set x,y" when "y' is undefined

2005-04-17 Thread amodra at bigpond dot net dot au
--- 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