aboutsummaryrefslogtreecommitdiff
path: root/gas/write.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-09-12 03:44:42 +0000
committerIan Lance Taylor <ian@airs.com>1999-09-12 03:44:42 +0000
commit945a1a6b988199a9ab1037bd8ff3d417334f5ecf (patch)
treeb49a050599e9fe91a53073f2b3445c980a332dd9 /gas/write.c
parent12951dca7666c3bf56911c0561c9ac801403cb22 (diff)
downloadgdb-945a1a6b988199a9ab1037bd8ff3d417334f5ecf.zip
gdb-945a1a6b988199a9ab1037bd8ff3d417334f5ecf.tar.gz
gdb-945a1a6b988199a9ab1037bd8ff3d417334f5ecf.tar.bz2
* write.c (write_relocs): Call SET_SECTION_RELOCS if it is
defined. * config/obj-coff.h (SET_SECTION_RELOCS): Define. * doc/internals.texi (Object format backend): Document SET_SECTION_RELOCS.
Diffstat (limited to 'gas/write.c')
-rw-r--r--gas/write.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/write.c b/gas/write.c
index 20fdde0..e386ece 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -1068,6 +1068,10 @@ write_relocs (abfd, sec, xxx)
(bfd_get_section_flags (abfd, sec)
& (flagword) ~SEC_RELOC));
+#ifdef SET_SECTION_RELOCS
+ SET_SECTION_RELOCS (sec, relocs, n);
+#endif
+
#ifdef DEBUG3
{
int i;