[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/27753] -mx86-used-note= defaulting to yes regresses
From: |
jbeulich at suse dot com |
Subject: |
[Bug gas/27753] -mx86-used-note= defaulting to yes regresses |
Date: |
Mon, 21 Jun 2021 06:40:51 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=27753
--- Comment #7 from Jan Beulich <jbeulich at suse dot com> ---
(In reply to Fangrui Song from comment #6)
> A dynamic loader needs PT_GNU_PROPERTY to know the ISA usage of a component.
> .note.gnu.property makes up PT_GNU_PROPERTY. Therefore, the section needs to
> SHF_ALLOC to be part of the program image.
You fail to address my pointing out of this not being compliant to gABI. I also
don't buy the argument that the dynamic loader needs the note sections mapped
into memory. It can very well simply read them from the file. (I can see that
it's _easier_ if they get mapped, but that's not an excuse to violate gABI,
which I assume has good reasons to state what it states.)
> If you use objcopy -O binary, you will notice that the output as 4mib. Why?
> Because the linker generates .note.gnu.build-id . You need
> -Wl,--build-id=none to remove it.
> [...]
> You may use -Wa,-mx86-used-note=no to remove .note.gnu.property
This doesn't address my question as to making oneself immune to future such
binutils changes.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gas/27753] -mx86-used-note= defaulting to yes regresses, i at maskray dot me, 2021/06/17
- [Bug gas/27753] -mx86-used-note= defaulting to yes regresses, jbeulich at suse dot com, 2021/06/18
- [Bug gas/27753] -mx86-used-note= defaulting to yes regresses, i at maskray dot me, 2021/06/18
- [Bug gas/27753] -mx86-used-note= defaulting to yes regresses,
jbeulich at suse dot com <=
- [Bug gas/27753] -mx86-used-note= defaulting to yes regresses, hjl.tools at gmail dot com, 2021/06/21
- [Bug gas/27753] -mx86-used-note= defaulting to yes regresses, jbeulich at suse dot com, 2021/06/21
- [Bug gas/27753] -mx86-used-note= defaulting to yes regresses, hjl.tools at gmail dot com, 2021/06/21