From 8a2e1fdd3c7ab5a441bd5c97b247cb4bf64e3417 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 21 Feb 1996 03:30:01 +0000 Subject: [PATCH] * config/tc-sh.c (sh_handle_align): Don't emit R_SH_ALIGN relocs in bss_section. PR 9044. --- gas/ChangeLog | 5 +++++ gas/config/tc-sh.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index d4c5681..11c9ee3 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +Tue Feb 20 22:25:55 1996 Ian Lance Taylor + + * 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 * config/tc-sparc.h (TC_RELOC_RTSYM_LOC_FIXUP): Check S_IS_WEAK as diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c index 34e7548..fd242e9 100644 --- a/gas/config/tc-sh.c +++ b/gas/config/tc-sh.c @@ -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); } -- 2.7.4