LMA XXX Overlaps Previous Sections When Using PHDRS

Nick Clifton nickc@redhat.com
Mon Dec 24 17:21:00 GMT 2007


Hi Anthony,

> /opt/cross-tools/binutils-2.17-gcc-4.1.1-newlib-1.14.0/lib/gcc/i686-elf/
> 4.1.1/../../../../i686-elf/bin/ld: test.elf: section .section_0 lma
> 0x1000 overlaps previous sections

This is a bogus error message due to a spurious check in the linker.  Please 
try the attached patch and let me know if you have any problems.

Cheers
   Nick

bfd/ChangeLog

2007-12-24  Nick Clifton  <nickc@redhat.com>

	* elf.c (assign_file_positions_for_load_sections): Do not complain
	when then LMA is lower than the VMA.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: elf.c.patch
Type: text/x-patch
Size: 1111 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20071224/b7635ec5/attachment.bin>


More information about the Binutils mailing list