Integrated: 8326412: debuginfo files should not have executable bit set
Magnus Ihse Bursie
ihse at openjdk.org
Wed Feb 21 14:12:58 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.
This pull request has now been integrated.
Changeset: c022431a
Author: Magnus Ihse Bursie <ihse at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/c022431a00a1d84594779315dd1159a7cf03142e
Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
8326412: debuginfo files should not have executable bit set
Reviewed-by: erikj
-------------
PR: https://git.openjdk.org/jdk/pull/17947
More information about the build-dev
mailing list