public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* How to get the padding size for the next section?
@ 2006-05-12 17:05 H. J. Lu
  0 siblings, 0 replies; only message in thread
From: H. J. Lu @ 2006-05-12 17:05 UTC (permalink / raw)
  To: binutils

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-05-12  5:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-12 17:05 How to get the padding size for the next section? H. J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).