RFR: 8326412: debuginfo files should not have executable bit set
Erik Joelsson
erikj at openjdk.org
Wed Feb 21 13:40:56 UTC 2024
On Wed, 21 Feb 2024 13:15:18 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:
> When we create our debuginfo files on linux, we use objcopy to create a copy of the corresponding lib*.so or executable. In the latter case, objcopy will keep the executable bit. While this is a reasonable assumption for objcopy, we really treat the debuginfo files as data, not as executables in their own right, so we should strip the executable bit.
>
> This was found when working with [JDK-8325342](https://bugs.openjdk.org/browse/JDK-8325342), and I there attempted to properly locate all executables and only executables.
Marked as reviewed by erikj (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/17947#pullrequestreview-1893232904
More information about the build-dev
mailing list