public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* gold incremental file format on 64-bit
@ 2012-04-20 22:33 David Miller
  2012-04-20 22:55 ` Cary Coutant
  0 siblings, 1 reply; 13+ messages in thread
From: David Miller @ 2012-04-20 22:33 UTC (permalink / raw)
  To: binutils


One naggling issue with a native 64-bit sparc GOLD is that the
incremental linking file format leads to many unaligned accesses which
SIGBUS on sparc.

Actually, much care has already been taken in the file format to put
potentially 64-bit values into 8-byte sized and offsetted locations.

But the individual sub-sections of the incremental linking file can
end up not being 8-byte aligned.

I intend to fix this by padding up each sub-section by enough to
8-byte align each one, when necessary, to fix this problem.

What is the state of the incremental file format version?  I need
to increment it when I make this layout change, right?  Or are we
still at a point where we can just adjust things with impunity and
without a version bump?

Also, it would have been nice for the gdb-index file format to not
have the unaligned cases I ran into on 64-bit sparc the other week and
fixed by using Swap_unaligned.  How much flexibility exists to
rearrange the gdb-index file layout?

Thanks.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-04-24 21:45 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-20 22:33 gold incremental file format on 64-bit David Miller
2012-04-20 22:55 ` Cary Coutant
2012-04-20 23:02   ` David Miller
2012-04-20 23:23     ` Cary Coutant
2012-04-20 23:30       ` David Miller
2012-04-21  0:37         ` Cary Coutant
2012-04-21  0:49           ` David Miller
2012-04-22  5:39             ` David Miller
2012-04-23 21:07               ` Cary Coutant
2012-04-23 21:11                 ` David Miller
2012-04-23 21:14                   ` Cary Coutant
2012-04-23 21:18                     ` David Miller
2012-04-24 21:58                 ` Ian Lance Taylor

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).