Displaying 4 results from an estimated 4 matches for "sht_arm_attributes".
2019 Oct 18
2
llvm-strip creates unloadable shared objects on linux-armv7hf
...I don't have much experience with ARM, but from your report and Peter's explanation of why LLD does it, I agree we should be consistent with LLD and keep the section.
>
> From my skimming of the LLD sources, it looks like we keep arm attributes section based on the section type being SHT_ARM_ATTRIBUTES, not on the name being ".ARM.attributes". Other than that, this change seems good to accept.
>
> Feel free to send a patch! (btw, my review handle is rupprecht, not rupprect).
>
> On Thu, Oct 17, 2019 at 5:29 AM Peter Smith via llvm-dev <llvm-dev at lists.llvm.org> wrote...
2019 Oct 17
2
llvm-strip creates unloadable shared objects on linux-armv7hf
...g the
problems with old versions of libc, I'd expect that you'll need to add
a test case for the patch to be accepted. To do that it is probably
best to look at the existing tests for llvm-strip and try and copy
them. The test could be as simple as generating a binary with a
section of type SHT_ARM_ATTRIBUTES and checking that strip didn't
remove it. These tests sometimes use yaml2obj to generate an ELF file
without needing a compiler and linker. Running the tests should be as
simple as ninja check-llvm or make check-llvm depending on whether you
used ninja or make when building llvm. If you want to...
2016 Jun 03
2
[RFC][LLD][ARM] Initial ARM port for LLD
...is only 1
Mb. Range extension thunks are likely to be needed for large programs.
Support for big-endian ARM targets
- ARMv6 and above has little-endian instructions and big-endian data.
The input objects for ARM have big-endian instructions so the linker
must endian reverse each instruction.
Use SHT_ARM_ATTRIBUTES sections for compatibility checking
- Detect incompatible objects at link-time rather than risk runtime errors.
At this stage I haven't thought too hard about how best to implement
these. I think that some of these may be disruptive enough to post
design alternatives as RFCs rather than as rev...
2019 Oct 17
4
llvm-strip creates unloadable shared objects on linux-armv7hf
Hello Rui,
Thanks for your reply. I tried with the keep-section argument and that
made the shared library work.
Should these sections be kept around by default maybe?
-- Tobias
On Thu, Oct 17, 2019 at 11:06 AM Rui Ueyama <ruiu at google.com> wrote:
>
> One thing I noticed is that llvm-strip seemed to remove a .ARM.attributes section. Can you try --keep-section=.ARM.attributes to