[PATCH RFC] bfd/ELF: restrict file alignment for object files
Nick Clifton
nickc@redhat.com
Mon Sep 9 12:01:56 GMT 2024
Hi Jan,
>> A fair point. To be honest I am not sure how much the kernel cares about
>> alignments of any sections in .ko files. But better to play safe is my
>> feeling.
>
> yet then - any hint from where to take the two alignment values? Do they
> need adding from scratch, for every architecture?
Maybe bfd->xvec->section_alignment_power ?
(I have not looked to see if this is used consistently, so the suggestion
may be a non-starter).
Or asection.alignment_power ?
(Again, ot tested).
Cheers
Nick
More information about the Binutils
mailing list