This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] PR ld/24709 [arm] linker crash and assertion failure with CMSE


Hi,

As discussed in the PR, we do not support the case where CMSE stubs
are inserted too far from their destination. This would require an
intermediate long-branch stub, which is tricky in this context.

Instead of crashing, this patch emit an error message and exits.

I will send a GCC testsuite patch separately to avoid placing the CMSE
stubs too far.

OK?

Christophe

2019-07-02  Christophe Lyon  <christophe.lyon@linaro.org>

        * bfd/elf32-arm.c (CMSE_STUB_NAME): New define.
        (elf32_arm_get_stub_entry): Do not try to emit long-branch stubs
        for CMSE stubs.
        (arm_dedicated_stub_output_section_name): Use CMSE_STUB_NAME.

Attachment: ld-pr24709.patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]