[3/21] Keep .text, .data and .bss on AIX
Nick Clifton
nickc@redhat.com
Fri Mar 13 11:42:00 GMT 2009
Hi Richard,
> ld/
> * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Mark
> .text, .data and .bss output sections as SEC_KEEP.
>
> ld/testsuite/
> * ld-powerpc/aix-core-sec-1.s, ld-powerpc/aix-core-sec-1.ex,
> ld-powerpc/aix-core-sec-1.hd, ld-powerpc/aix-core-sec-2.s,
> ld-powerpc/aix-core-sec-2.ex, ld-powerpc/aix-core-sec-2.hd,
> ld-powerpc/aix-core-sec-3.s, ld-powerpc/aix-core-sec-3.ex,
> ld-powerpc/aix-core-sec-3.hd: New tests.
> * ld-powerpc/aix52.exp: New harness.
Approved - please apply - although ... :-)
> + einfo ("%P: can't find output section %s\n", must_keep_sections[i]);
I would suggest changing the wording to "can't find required output
section" as otherwise the user might think: "well so what if I don't
have a .bss section, who cares ?".
Cheers
Nick
More information about the Binutils
mailing list