Menu

#348 binutils misleading relocation errors in debug sections

4.7.x_development
open
nobody
None
5
2013-03-10
2013-03-10
No

Discovered in contiki but never reported: Builds of the Contiki 2.6 hello_world.sky produce:

../../../msp430/lib/mmpy-16/libc.a(rand.o):(.debug_info+0xd8): relocation truncated to fit: R_MSP430_16_BYTE against `no symbol'

because of a debug symbol related to an implicit pointer, which ends up having an offset that is more than 2^16 bytes away. The DWARF_REF_SIZE probably shouldn't apply to values in debug sections.

Contiki worked around this by removing -g. Unless/until somebody fixes this the same technique should be applied in other situations.

Discussion


Log in to post a comment.