md_apply_fix3 bug on arm-linux

Philip Blundell pb@nexus.co.uk
Mon Apr 5 19:11:00 GMT 2004


A user reports that "mov r0, #UNDEFINED_SYMBOL" assembles to "mov r0,
#0" without emitting any relocation or diagnostic, which clearly isn't
right.

Also, this code:

.word 0
foo:
mov r0, #foo

assembles to "mov r0, #4", again with no relocation, which also seems
fairly bogus.

A patch like the one below seems to clear it up.  Does this look right? 
I guess I should also generate some cases for the testsuite.

Thanks

p.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: as.diff
Type: text/x-patch
Size: 562 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20040405/1d6df3df/attachment.bin>


More information about the Binutils mailing list