From: Alan Modra Date: Tue, 18 Jan 2005 08:51:54 +0000 (+0000) Subject: bfd/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1449d79baec7892ca64b0da6d7fe16a8d74b4edd;p=binutils-gdb.git bfd/ * bfd.c (bfd_link_just_syms): Add abfd param. * bfd-in2.h: Regenerate. ld/ * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call. (lang_place_orphans): Don't abort on just_syms_flag, instead call bfd_link_just_syms. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index eb7d83eb945..97a61bdfdf7 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-01-18 Alan Modra + + * bfd.c (bfd_link_just_syms): Add abfd param. + * bfd-in2.h: Regenerate. + 2005-01-17 Richard Sandiford * elf-eh-frame.c (skip_cfa_op, skip_non_nops): New functions. diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 28a762bc6f4..70f105bd38e 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -4193,7 +4193,7 @@ bfd_boolean bfd_set_private_flags (bfd *abfd, flagword flags); #define bfd_link_add_symbols(abfd, info) \ BFD_SEND (abfd, _bfd_link_add_symbols, (abfd, info)) -#define bfd_link_just_syms(sec, info) \ +#define bfd_link_just_syms(abfd, sec, info) \ BFD_SEND (abfd, _bfd_link_just_syms, (sec, info)) #define bfd_final_link(abfd, info) \ diff --git a/bfd/bfd.c b/bfd/bfd.c index 0126a9f3e3a..aacc5007be9 100644 --- a/bfd/bfd.c +++ b/bfd/bfd.c @@ -1,6 +1,6 @@ /* Generic BFD library interface and support routines. Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2001, 2002, 2003, 2004 + 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. Written by Cygnus Support. @@ -1203,7 +1203,7 @@ DESCRIPTION .#define bfd_link_add_symbols(abfd, info) \ . BFD_SEND (abfd, _bfd_link_add_symbols, (abfd, info)) . -.#define bfd_link_just_syms(sec, info) \ +.#define bfd_link_just_syms(abfd, sec, info) \ . BFD_SEND (abfd, _bfd_link_just_syms, (sec, info)) . .#define bfd_final_link(abfd, info) \ diff --git a/ld/ChangeLog b/ld/ChangeLog index c81d57dc8c4..27b59bdb528 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2005-01-18 Alan Modra + + * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call. + (lang_place_orphans): Don't abort on just_syms_flag, instead call + bfd_link_just_syms. + 2005-01-16 Danny Smith * defilep.y (def_name, def_library): Combine into... diff --git a/ld/ldlang.c b/ld/ldlang.c index ab34090e412..322d23422ef 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -1,6 +1,6 @@ /* Linker command language support. Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, - 2001, 2002, 2003, 2004 + 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of GLD, the Gnu Linker. @@ -1284,7 +1284,7 @@ section_already_linked (bfd *abfd, asection *sec, void *data) discard all sections. */ if (entry->just_syms_flag) { - bfd_link_just_syms (sec, &link_info); + bfd_link_just_syms (abfd, sec, &link_info); return; } @@ -4442,9 +4442,8 @@ lang_place_orphans (void) around for a sensible place for it to go. */ if (file->just_syms_flag) - abort (); - - if ((s->flags & SEC_EXCLUDE) != 0) + bfd_link_just_syms (file->the_bfd, s, &link_info); + else if ((s->flags & SEC_EXCLUDE) != 0) s->output_section = bfd_abs_section_ptr; else if (strcmp (s->name, "COMMON") == 0) {