summaryrefslogtreecommitdiff
path: root/bfd/elf32-bfin.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-11-15 08:33:59 +0000
committerMike Frysinger <vapier@gentoo.org>2010-11-15 08:33:59 +0000
commit80a0375da9a27b2bce9cec2f9686c4ae57f8bd90 (patch)
tree703d117444cc7ac4269326cfd291345528b29e61 /bfd/elf32-bfin.c
parenta82a9785233e5e86385ae623c5a6f143117125f1 (diff)
downloadbinutils-redhat-80a0375da9a27b2bce9cec2f9686c4ae57f8bd90.tar.gz
bfd: bfin: drop needless symbol flag handling imported from FRV
The Blackfin bfd merged some FRV code recently, and then removed pieces that didn't make sense. In the FRV code, it outputs a "_gp" symbol in its BFD whereas in the Blackfin code, we don't. So while on the FRV side it fiddles with the "flags" variable (sometimes using it for section flags and sometimes using it for symbol flags), we don't need any of that. This lead to BZ 12177 where the Blackfin code is a bit confusing. So to fix things up, remove more stuff we don't need. Shouldn't change the behavior at all. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'bfd/elf32-bfin.c')
-rw-r--r--bfd/elf32-bfin.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/bfd/elf32-bfin.c b/bfd/elf32-bfin.c
index 237391b201..38f31e4f5a 100644
--- a/bfd/elf32-bfin.c
+++ b/bfd/elf32-bfin.c
@@ -3442,14 +3442,8 @@ _bfin_create_got_section (bfd *abfd, struct bfd_link_info *info)
return FALSE;
bfinfdpic_gotfixup_section (info) = s;
- flags = BSF_GLOBAL;
- }
- else
- {
- flags = BSF_GLOBAL | BSF_WEAK;
}
- flags = pltflags;
pltflags |= SEC_CODE;
if (bed->plt_not_loaded)
pltflags &= ~ (SEC_CODE | SEC_LOAD | SEC_HAS_CONTENTS);