RFR: 8336849: Remove .llvm_addrsig section from JDK/VM static libraries (.a files) [v2]
Jiangli Zhou
jiangli at openjdk.org
Wed Aug 7 20:35:05 UTC 2024
On Wed, 7 Aug 2024 15:12:30 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:
>> Jiangli Zhou has updated the pull request incrementally with one additional commit since the last revision:
>>
>> - Incorporate comment suggestion from @magicus. Also applied some additional minor adjustments on top of the suggestion.
>
> make/common/native/Link.gmk line 114:
>
>> 112: # Linking with '-Wl,--icf=safe' using objects created by 'ld -r' may not work
>> 113: # and could cause errors like the following:
>> 114: # ld: --icf=safe conservatively ignores SHT_LLVM_ADDRSIG [...] with sh_link=0 (likely created using objcopy or ld -r)
>
> I'd recommend rephrasing the comment somewhat, like
>
> Suggestion:
>
> # 'ld -r' might fail to update the .llvm_addrsig section, and this will cause subsequent
> # calls to lld to fail when linking with this library, so remove that section.
>
>
> (adjust line lengths if > 80)
Suggestion applied, with some minor additional adjustments. Thanks.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20265#discussion_r1707851591
More information about the build-dev
mailing list