projects
/
external
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Delete duplicate target short-cuts to dynamic sections
[external/binutils.git]
/
bfd
/
elfnn-riscv.c
diff --git
a/bfd/elfnn-riscv.c
b/bfd/elfnn-riscv.c
index
be1de22
..
4f11cf6
100644
(file)
--- a/
bfd/elfnn-riscv.c
+++ b/
bfd/elfnn-riscv.c
@@
-291,8
+291,7
@@
riscv_elf_create_got_section (bfd *abfd, struct bfd_link_info *info)
struct elf_link_hash_table *htab = elf_hash_table (info);
/* This function may be called more than once. */
- s = bfd_get_linker_section (abfd, ".got");
- if (s != NULL)
+ if (htab->sgot != NULL)
return TRUE;
flags = bed->dynamic_sec_flags;