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]

How to get the padding size for the next section?


We don't handle .eh_frame section padding properly:

http://sourceware.org/bugzilla/show_bug.cgi?id=2655

When we pad the current .eh_frame section for the alignment of the
next .eh_frame section, we need to know the padding size. Otherwise,
the last FDE size may be wrong. Currently, we assume that all .eh_frame
sections have the same alignment. It isn't true for x86-64 since
the .eh_frame section in crtend.o from gcc has 4 byte alignment.
Ideally, _bfd_elf_write_section_eh_frame knows the real alignment of
the next .eh_frame section. But this info is hard to come by.

A kludge may be to force 8 byte alignment on .eh_frame for x86-64
when we see a 4 byte alignment.


H.J.


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