bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/30907] ELF segment add extra 2 LOAD segments in aarch64, making


From: ocs-bot at opencloudos dot tech
Subject: [Bug ld/30907] ELF segment add extra 2 LOAD segments in aarch64, making binary bigger 128KiB than before
Date: Wed, 27 Sep 2023 09:42:00 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=30907

--- Comment #1 from nilus <ocs-bot at opencloudos dot tech> ---
after git bisect between 2.38 and 2.39, I found the commit which introducted
this LOAD segment change:

commit f420c9c84eb53fea7da452eab8ae0bd855537859
Author: Alan Modra <amodra@gmail.com>
Date:   Sun May 22 14:00:06 2022 +0930

    bit-rot in target before_parse function

    Copy initialisation over from the elf.em before_parse.  Commit
    ba951afb999 2022-05-03 changed behaviour on arm and score regarding
    exec stack.  This patch restores the previous behaviour.

            * emultempl/aarch64elf.em (before_parse): Init separate_code,
            warn_execstack, no_warn_rwx_segments and default_execstack.
            * emultempl/armelf.em (before_parse): Likewise.
            * emultempl/scoreelf.em (before_parse): Likewise.
            * testsuite/ld-elf/elf.exp (target_defaults_to_execstack): Return
            true for arm and nacl.

 ld/emultempl/aarch64elf.em  | 4 ++++
 ld/emultempl/armelf.em      | 4 ++++
 ld/emultempl/scoreelf.em    | 4 ++++
 ld/testsuite/ld-elf/elf.exp | 2 --
 4 files changed, 12 insertions(+), 2 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]