aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-05-15 00:19:23 +0000
committerAlan Modra <amodra@gmail.com>2002-05-15 00:19:23 +0000
commitc2c01aa78c11fbb58e005848ff2dbaf6aed2e408 (patch)
treecac1a3f96c6159c289548328e140467f3c60d8da /ld
parent2d653fc7608af5956303017a1ae8303e96784a59 (diff)
downloadgdb-c2c01aa78c11fbb58e005848ff2dbaf6aed2e408.zip
gdb-c2c01aa78c11fbb58e005848ff2dbaf6aed2e408.tar.gz
gdb-c2c01aa78c11fbb58e005848ff2dbaf6aed2e408.tar.bz2
* ldlang.c (section_already_linked): Call bfd_link_just_syms.
(lang_place_orphans): Abort if just_syms_flag.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/ldlang.c9
2 files changed, 7 insertions, 7 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index a38bd69..f10f0dd 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2002-05-15 Alan Modra <amodra@bigpond.net.au>
+
+ * ldlang.c (section_already_linked): Call bfd_link_just_syms.
+ (lang_place_orphans): Abort if just_syms_flag.
+
2002-05-10 Tom Rix <trix@redhat.com>
* emultempl/aix.em: (gld*_set_output_arch): New function. Use
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 054ffc0..885f74c 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -959,8 +959,7 @@ section_already_linked (abfd, sec, data)
discard all sections. */
if (entry->just_syms_flag)
{
- sec->output_section = bfd_abs_section_ptr;
- sec->output_offset = sec->vma;
+ bfd_link_just_syms (sec, &link_info);
return;
}
@@ -3803,11 +3802,7 @@ lang_place_orphans ()
if (file->just_syms_flag)
{
- /* We are only retrieving symbol values from this
- file. We want the symbols to act as though the
- values in the file are absolute. */
- s->output_section = bfd_abs_section_ptr;
- s->output_offset = s->vma;
+ abort ();
}
else if (strcmp (s->name, "COMMON") == 0)
{