m68k linker scripts
Paul Brook
paul@codesourcery.com
Tue Dec 6 18:42:00 GMT 2005
When compiling C++ code it's common to get comdat sections with names
like .bss.foo. In the final output file these should be places in .bss. The
libgloss m68k linker scripts don't handle these sections so ld sometimes
places them after _end, with catastrophic results.
The attached patch fixes the linker scripts to include these sections.
Ok?
Paul
2005-12-06 Paul Brook <paul@codesourcery.com>
libgloss/
* m68k/bcc.ld: Add .text.*, .rodata.*, .data.* and .bss.*.
* m68k/idp.ld: Ditto.
* m68k/idpgdb: Ditto.
* m68k/mvme135.ld: Ditto.
* m68k/sbc5204.ld: Ditto.
* m68k/sbc5206.ld: Ditto.
* m68k/sim.ld: Ditto.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.m68k_ldscripts
Type: text/x-diff
Size: 7796 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20051206/efae66be/attachment.bin>
More information about the Newlib
mailing list