[Bug 801727]

Dave Martin dave.martin at linaro.org
Tue Jun 28 12:57:37 UTC 2011


Created attachment 5824
possible fix

The attached patch hooks into mapping_state() to mark the alignment
requirement on the current output section whenever we start emitting
instructions.

It might be safer to make the alignment 4 for Thumb code as well as ARM
code; the current patch gives Thumb code an alignment of 2 bytes, based
on the principles that (a) this makes the current situation no worse,
and (b) all realistic situations where a Thumb code section requires
4-byte alignment will involve an explicit .align or literal pool
somewhere, so we don't need to worry.

-- 
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/801727

Title:
  ARM: gas fails to set the proper alignment on code sections, causing
  broken output

To manage notifications about this bug go to:
https://bugs.launchpad.net/binutils/+bug/801727/+subscriptions




More information about the Ubuntu-mozillateam-bugs mailing list