bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/20247] AVR/ARM align causes unnecessary padding of segment


From: nickc at redhat dot com
Subject: [Bug gas/20247] AVR/ARM align causes unnecessary padding of segment
Date: Thu, 16 Jun 2016 15:44:05 +0000

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

Nick Clifton <nickc at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2016-06-16
     Ever confirmed|0                           |1

--- Comment #3 from Nick Clifton <nickc at redhat dot com> ---
Hi BG,

  This behaviour is the result of the md_section_align() function defined
  in most of the target specific backends to the assembler (gas/config/tc-*.c).

  For the ARC, the function unconditionally pads a section to its alignment
  value.  No explanation is given for why the function has been programmed
  to do this, but I assume that it was deliberate.  

  For other targets like ARM and x86, the padding only happens if the output
  format is aout, not ELF.  (I am not sure how you managed to get a padded
  ARM section.  Perhaps you can tell me).

  Anyway, it is definitely a per-target decision as to how sections should
  be padded.  So - which targets, and file formats, are specifically concerned
  about ?

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]