This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] BFD: Remove unused SEC_HAS_GOT_REF section flag
- From: Maciej W.Rozycki <macro at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 19 Feb 2018 18:40:08 -0000
- Subject: [binutils-gdb] BFD: Remove unused SEC_HAS_GOT_REF section flag
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4f7fd351a727ffc44d3dd4e00ddf5222cd2063c5
commit 4f7fd351a727ffc44d3dd4e00ddf5222cd2063c5
Author: Maciej W. Rozycki <macro@mips.com>
Date: Mon Feb 19 18:38:41 2018 +0000
BFD: Remove unused SEC_HAS_GOT_REF section flag
Remove the SEC_HAS_GOT_REF section flag no longer in use since commit
a252afa4cdff ("Fix linking of PIC code on PA"),
<https://sourceware.org/ml/binutils/2003-08/msg00467.html>, to make the
bit position available for reuse.
bfd/
* section.c (SEC_HAS_GOT_REF): Remove macro.
* bfd-in2.h: Regenerate.
Diff:
---
bfd/ChangeLog | 5 +++++
bfd/bfd-in2.h | 8 --------
bfd/section.c | 8 --------
3 files changed, 5 insertions(+), 16 deletions(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 0cfbef6..e4c33c7 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2018-02-19 Maciej W. Rozycki <macro@mips.com>
+
+ * section.c (SEC_HAS_GOT_REF): Remove macro.
+ * bfd-in2.h: Regenerate.
+
2018-02-19 Alan Modra <amodra@gmail.com>
* elf-attrs.c (_bfd_elf_parse_attributes): Correct _bfd_error_handler
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index e083135..2901488 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1342,14 +1342,6 @@ typedef struct bfd_section
/* The section contains thread local data. */
#define SEC_THREAD_LOCAL 0x400
- /* The section has GOT references. This flag is only for the
- linker, and is currently only used by the elf32-hppa back end.
- It will be set if global offset table references were detected
- in this section, which indicate to the linker that the section
- contains PIC code, and must be handled specially when doing a
- static link. */
-#define SEC_HAS_GOT_REF 0x800
-
/* The section contains common symbols (symbols may be defined
multiple times, the value of a symbol is the amount of
space it requires, and the largest symbol value is the one
diff --git a/bfd/section.c b/bfd/section.c
index ef0af8a..de4ca3a 100644
--- a/bfd/section.c
+++ b/bfd/section.c
@@ -221,14 +221,6 @@ CODE_FRAGMENT
. {* The section contains thread local data. *}
.#define SEC_THREAD_LOCAL 0x400
.
-. {* The section has GOT references. This flag is only for the
-. linker, and is currently only used by the elf32-hppa back end.
-. It will be set if global offset table references were detected
-. in this section, which indicate to the linker that the section
-. contains PIC code, and must be handled specially when doing a
-. static link. *}
-.#define SEC_HAS_GOT_REF 0x800
-.
. {* The section contains common symbols (symbols may be defined
. multiple times, the value of a symbol is the amount of
. space it requires, and the largest symbol value is the one