* config/tc-arm.c (arm_init_frag): Set thumb MODE_RECORDED flag for
non-elf. (arm_handle_align): Re-enable assert for non-elf.
This commit is contained in:
parent
f664f61842
commit
2e98972ef6
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2009-12-11 Andrew Jenner <andrew@codesourcery.com>
|
||||||
|
|
||||||
|
* config/tc-arm.c (arm_init_frag): Set thumb MODE_RECORDED flag for
|
||||||
|
non-elf.
|
||||||
|
(arm_handle_align): Re-enable assert for non-elf.
|
||||||
|
|
||||||
2009-12-11 Nick Clifton <nickc@redhat.com>
|
2009-12-11 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* Makefile.in: Regenerate.
|
* Makefile.in: Regenerate.
|
||||||
|
|
|
@ -18577,9 +18577,7 @@ arm_handle_align (fragS * fragP)
|
||||||
if (bytes > MAX_MEM_FOR_RS_ALIGN_CODE)
|
if (bytes > MAX_MEM_FOR_RS_ALIGN_CODE)
|
||||||
bytes &= MAX_MEM_FOR_RS_ALIGN_CODE;
|
bytes &= MAX_MEM_FOR_RS_ALIGN_CODE;
|
||||||
|
|
||||||
#ifdef OBJ_ELF
|
|
||||||
gas_assert ((fragP->tc_frag_data.thumb_mode & MODE_RECORDED) != 0);
|
gas_assert ((fragP->tc_frag_data.thumb_mode & MODE_RECORDED) != 0);
|
||||||
#endif
|
|
||||||
|
|
||||||
if (fragP->tc_frag_data.thumb_mode & (~ MODE_RECORDED))
|
if (fragP->tc_frag_data.thumb_mode & (~ MODE_RECORDED))
|
||||||
{
|
{
|
||||||
|
@ -18685,7 +18683,7 @@ void
|
||||||
arm_init_frag (fragS * fragP, int max_chars ATTRIBUTE_UNUSED)
|
arm_init_frag (fragS * fragP, int max_chars ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
/* Record whether this frag is in an ARM or a THUMB area. */
|
/* Record whether this frag is in an ARM or a THUMB area. */
|
||||||
fragP->tc_frag_data.thumb_mode = thumb_mode;
|
fragP->tc_frag_data.thumb_mode = thumb_mode | MODE_RECORDED;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else /* OBJ_ELF is defined. */
|
#else /* OBJ_ELF is defined. */
|
||||||
|
|
Loading…
Reference in a new issue