[ARM] undefined local symbols

Nathan Sidwell nathan@codesourcery.com
Wed Aug 5 16:16:00 GMT 2009


The bug I recently fixed in the ARM assembler concerning missing expressions had 
the artifact of emitting relocations against local undefined symbols.  These 
would cause the linker to segfault, which is unpleasant.  Of course having such 
an undefined symbol is a strange thing to do -- except for ARM_V4BX and ARM_NONE 
relocs -- but we should emit some sensible error.

This patch does that.  A weak undefined local symbol will decay to zero, and a 
non-weak one will generate an error message.

tested on arm-eabi, ok?

nathan
-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: all.diff
URL: <https://sourceware.org/pipermail/binutils/attachments/20090805/21900aef/attachment.ksh>


More information about the Binutils mailing list