bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/29145] GAS always generates padding instructions regardless of


From: nickc at redhat dot com
Subject: [Bug gas/29145] GAS always generates padding instructions regardless of `--no-pad-sections`
Date: Tue, 14 Jun 2022 14:16:12 +0000

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

--- Comment #7 from Nick Clifton <nickc at redhat dot com> ---
(In reply to LIU Hao from comment #6)
> Is there any progress on this issue? If this behavior can't be changed by
> default, it's also nice to have an experimental option.

Sorry no.  It is on my list, but it is at a very low priority for me.  Of
course you could always have a go yourself....

For example in bfd/pei-x86_64.c around line 50 there is:

  { COFF_SECTION_NAME_PARTIAL_MATCH (".text"), \
    COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \

If you changed the 4 to a 1 that might then give you 1-byte alignment for the
.text section.  I have not tried this myself, but it is worth having a go if
you feel inclined.

Cheers
  Nick

-- 
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]