[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/12931] ARM: gas fails to set the proper alignment on code secti

From: dave.martin at linaro dot org
Subject: [Bug gas/12931] ARM: gas fails to set the proper alignment on code sections, causing broken output
Date: Tue, 28 Jun 2011 12:58:08 +0000


--- Comment #2 from Dave Martin <dave.martin at linaro dot org> 2011-06-28 
12:57:37 UTC ---
Created attachment 5824
  --> http://sourceware.org/bugzilla/attachment.cgi?id=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

Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]