[PATCH, LD, ping] Make import libraries relocatable objects

Thomas Preudhomme thomas.preudhomme@foss.arm.com
Thu May 4 09:08:00 GMT 2017


Ping?

Best regards,

Thomas

On 27/04/17 11:41, Thomas Preudhomme wrote:
> Hi,
>
> For ELF targets --out-implib currently generates an executable file
> (e_type is ET_EXEC) despite the file being expected to be linked against
> some other object file to make an executable later. It seems therefore
> more sensible to make the import library a relocatable object file
> (e_type set to ET_REL).
>
> Incidentally, as dicted by requirement 8 of
> "ARM v8-M Security Extensions: Requirements on Development Tools"
> (document ARM-ECM-0359818) version 1.0, import libraries generated when
> using --cmse-implib *must* be relocatable object file so this commit
> also adds an assert there in case the type of ELF import library is
> changed again in the future.
>
> ChangeLog entry is as follows:
>
> *** bfd/ChangeLog ***
>
> 2017-04-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
>
>     * elflink.c (elf_output_implib): Remove executable flag from import
>     library bfd.
>     * elf32-arm.c (elf32_arm_filter_implib_symbols): Assert that the import
>     library is a relocatable object file.
>
> *** ld/ChangeLog ***
>
> 2017-04-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
>
>     * testsuite/ld-arm/arm-elf.exp
>     (Secure gateway import library generation): Check e_type field
>     of import library and executable produced.
>     * testsuite/ld-arm/cmse-implib.type: Expectations for e_type field.
>
> Testing: testsuite shows no regression when run for arm-none-eabi and
> armeb-none-eabi.
>
> Is this ok for master?
>
> Best regards,
>
> Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: relocatable_object_implib.patch
Type: text/x-patch
Size: 2565 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20170504/78176364/attachment.bin>


More information about the Binutils mailing list