From c9860af54bd1a3f078f2bf48b77b878577c155ea Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 8 Sep 2005 14:24:22 +0000 Subject: [PATCH] 2005-09-08 H.J. Lu PR ld/1263 * elflink.c (elf_link_add_object_symbols): Abort for --just-symbols on DSO. --- bfd/ChangeLog | 6 ++++++ bfd/elflink.c | 5 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 1c781488c7..ff4cec06c3 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2005-09-08 H.J. Lu + + PR ld/1263 + * elflink.c (elf_link_add_object_symbols): Abort for + --just-symbols on DSO. + 2005-09-08 Paul Brook * reloc.c: Rename BFD_RELOC_ARM_SMI to BFD_RELOC_ARM_SMC. diff --git a/bfd/elflink.c b/bfd/elflink.c index b74851698c..45ff665cd3 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -3291,11 +3291,10 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info) int ret; /* ld --just-symbols and dynamic objects don't mix very well. - Test for --just-symbols by looking at info set up by - _bfd_elf_link_just_syms. */ + ld shouldn't allow it. */ if ((s = abfd->sections) != NULL && s->sec_info_type == ELF_INFO_TYPE_JUST_SYMS) - goto error_return; + abort (); /* If this dynamic lib was specified on the command line with --as-needed in effect, then we don't want to add a DT_NEEDED -- 2.11.0