* config/tc-sh.c (sh_handle_align): Don't emit R_SH_ALIGN relocs

in bss_section.
PR 9044.
This commit is contained in:
Ian Lance Taylor 1996-02-21 03:30:01 +00:00
parent fe6fc35fdb
commit 8a2e1fdd3c
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Tue Feb 20 22:25:55 1996 Ian Lance Taylor <ian@cygnus.com>
* config/tc-sh.c (sh_handle_align): Don't emit R_SH_ALIGN relocs
in bss_section.
Mon Feb 19 14:16:24 1996 Ian Lance Taylor <ian@cygnus.com>
* config/tc-sparc.h (TC_RELOC_RTSYM_LOC_FIXUP): Check S_IS_WEAK as

View file

@ -1429,7 +1429,8 @@ sh_handle_align (frag)
if (sh_relax
&& frag->fr_type == rs_align
&& frag->fr_address + frag->fr_fix > 0
&& frag->fr_offset > 1)
&& frag->fr_offset > 1
&& now_seg != bss_section)
fix_new (frag, frag->fr_fix, 2, &abs_symbol, frag->fr_offset, 0,
R_SH_ALIGN);
}