aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/NEWS5
-rw-r--r--gas/config/obj-elf.c14
-rw-r--r--gas/doc/as.texinfo8
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/elf/type.e1
-rw-r--r--gas/testsuite/gas/elf/type.s4
7 files changed, 11 insertions, 32 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index adf99e2..27e0f82 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2008-12-23 Nick Clifton <nickc@redhat.com>
+
+ * NEWS :Remove mention of STT_IFUNC support.
+ * config/obj-elf.c (obj_elf_type): Remove STT_IFUNC support.
+ * doc/as.texinfo: Remove mention of STT_IFUNC support.
+
2008-12-21 Hans-Peter Nilsson <hp@axis.com>
* config/tc-cris.c (s_cris_dtpoff): New function.
diff --git a/gas/NEWS b/gas/NEWS
index 327782f..16324d6 100644
--- a/gas/NEWS
+++ b/gas/NEWS
@@ -1,10 +1,5 @@
-*- text -*-
-* The .type pseudo-op now accepts a type of STT_IFUNC which can be used to
- indicate that if the symbol is the target of a relocation, its value should
- not be used. Instead the function should be invoked and its result used as
- the value.
-
Changes in 2.19:
* New pseudo op .cfi_val_encoded_addr, to record constant addresses in unwind
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c
index 0f0c7d3..cf31770 100644
--- a/gas/config/obj-elf.c
+++ b/gas/config/obj-elf.c
@@ -1663,20 +1663,6 @@ obj_elf_type (int ignore ATTRIBUTE_UNUSED)
}
}
}
- else if (strcmp (typename, "indirect_function") == 0
- || strcmp (typename, "10") == 0
- || strcmp (typename, "STT_IFUNC") == 0)
- {
- const struct elf_backend_data *bed;
-
- bed = get_elf_backend_data (stdoutput);
- if (!(bed->elf_osabi == ELFOSABI_LINUX
- /* GNU/Linux is still using the default value 0. */
- || bed->elf_osabi == ELFOSABI_NONE))
- as_bad (_("symbol type \"%s\" is supported only by GNU targets"),
- typename);
- type = BSF_FUNCTION | BSF_INDIRECT_FUNCTION;
- }
#ifdef md_elf_symbol_type
else if ((type = md_elf_symbol_type (typename, sym, elfsym)) != -1)
;
diff --git a/gas/doc/as.texinfo b/gas/doc/as.texinfo
index d1f60dd..d8748dd 100644
--- a/gas/doc/as.texinfo
+++ b/gas/doc/as.texinfo
@@ -6293,14 +6293,6 @@ Mark the symbol as being a common data object.
@itemx notype
Does not mark the symbol in any way. It is supported just for completeness.
-@item STT_IFUNC
-@itemx indirect_function
-Mark the symbol as an indirect function. This has the same semantics as
-STT_FUNC except when the symbol is referenced by a relocation. In this case
-the symbol's value is not used in the relocation but instead the symbol is
-invoked as a function taking no arguments and the return value is used in the
-relocation. This also means that processing of the relocation must be delayed
-until run-time. (This is only supported on some targets).
@end table
Note: Some targets support extra types in addition to those listed above.
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 9dae6c3..587c070 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2008-12-23 Nick Clifton <nickc@redhat.com>
+
+ * gas/elf/type.s: Remove test of STT_IFUNC support.
+ * gas/elf/type.e: Update expected output.
+
2008-12-21 Hans-Peter Nilsson <hp@axis.com>
* gas/cris/rd-dtpoffd1.d, gas/cris/rd-dtpoffd1.s: New test.
diff --git a/gas/testsuite/gas/elf/type.e b/gas/testsuite/gas/elf/type.e
index 2eb352d..50a49ab 100644
--- a/gas/testsuite/gas/elf/type.e
+++ b/gas/testsuite/gas/elf/type.e
@@ -1,5 +1,4 @@
.: 0+0 1 FUNC LOCAL DEFAULT . function
- .: 0+1 1 IFUNC LOCAL DEFAULT . indirect_function
.: 0+0 1 OBJECT LOCAL DEFAULT . object
.: 0+1 1 TLS LOCAL DEFAULT . tls_object
.: 0+2 1 NOTYPE LOCAL DEFAULT . notype
diff --git a/gas/testsuite/gas/elf/type.s b/gas/testsuite/gas/elf/type.s
index 5a6476c..11f75bf 100644
--- a/gas/testsuite/gas/elf/type.s
+++ b/gas/testsuite/gas/elf/type.s
@@ -3,10 +3,6 @@
.type function,%function
function:
.byte 0x0
- .size indirect_function,1
- .type indirect_function,%indirect_function
-indirect_function:
- .byte 0x0
.data
.type object,%object
.size object,1