This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is it possible to remove section padding from in as/ld?


Miro Kropacek <miro.kropacek@gmail.com> writes:

>> I think if you force an alignment of 2**0 with the current linker script,
>> any alignment directive will be ignored, including ".even". Of course this
> True, but in that case, if linker script is able to force such thing,
> I don't understand why it can't force also this padding alignment. It
> should be consistent, shouldn't it?

The problem is that the alignment requirement isn't stored anywhere.
The a.out format simply does not have any way to express this, so the
linker is unable to know whether the assembler has seen any alignment
directives or not.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]