summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Haley <aph@redhat.com>2003-03-06 15:47:23 +0000
committerAndrew Haley <aph@redhat.com>2003-03-06 15:47:23 +0000
commit5922055aae9be53797df811b6e78e1efe24d1320 (patch)
treeb3c7ac6593d803eef57c590f1448e7a445236017
parent2e5e9ccbef0ea6cd1d97607af3e6eb9980d4c51d (diff)
downloadgdb-5922055aae9be53797df811b6e78e1efe24d1320.tar.gz
2003-03-06 Jakub Jelinek <jakub@redhat.com>
Andrew Haley <aph@redhat.com> * elflink.h (elf_bfd_discard_info): Don't process eh frames if output is relocateable.
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elflink.h8
2 files changed, 11 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 968104ea97e..341e6294292 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2003-03-06 Jakub Jelinek <jakub@redhat.com>
+ Andrew Haley <aph@redhat.com>
+
+ * elflink.h (elf_bfd_discard_info): Don't process eh frames if
+ output is relocateable.
+
2003-03-06 Steven Konopa <skonopa@kgo.csc.com>
* som.c (som_fixup_formats): Correct formats for R_AUX_UNWIND and
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 7d2d2e24eae..c39120d037b 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -8329,9 +8329,10 @@ elf_bfd_discard_info (output_bfd, info)
continue;
eh = bfd_get_section_by_name (abfd, ".eh_frame");
- if (eh != NULL
- && (eh->_raw_size == 0
- || bfd_is_abs_section (eh->output_section)))
+ if (info->relocateable
+ || (eh != NULL
+ && (eh->_raw_size == 0
+ || bfd_is_abs_section (eh->output_section))))
eh = NULL;
stab = bfd_get_section_by_name (abfd, ".stab");
@@ -8432,6 +8433,7 @@ elf_bfd_discard_info (output_bfd, info)
}
if (info->eh_frame_hdr
+ && !info->relocateable
&& _bfd_elf_discard_section_eh_frame_hdr (output_bfd, info))
ret = TRUE;