This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: TLS support for MIPS
On Tue, Feb 08, 2005 at 03:46:02PM +1030, Alan Modra wrote:
> On Mon, Feb 07, 2005 at 06:00:14PM -0500, Daniel Jacobowitz wrote:
> > * elflink.c: Don't exclude sections based on a shared library input.
>
> This would be better in ldlang_add_file, I think.
Like so? Tested on a bunch of different MIPS configurations, with no
problems. Only thing it might affect is --just-syms with a dynamic
object... well, don't do that then.
--
Daniel Jacobowitz
CodeSourcery, LLC
2005-02-21 Daniel Jacobowitz <dan@codesourcery.com>
* ldlang.c (ldlang_add_file): Don't call section_already_linked
for dynamic objects.
Index: binutils/ld/ldlang.c
===================================================================
--- binutils.orig/ld/ldlang.c 2005-01-28 10:21:38.000000000 -0500
+++ binutils/ld/ldlang.c 2005-02-14 12:38:19.000000000 -0500
@@ -4526,7 +4526,8 @@ ldlang_add_file (lang_input_statement_ty
each backend which might set the SEC_LINK_ONCE flag. If we do
this, we should probably handle SEC_EXCLUDE in the same way. */
- bfd_map_over_sections (entry->the_bfd, section_already_linked, entry);
+ if (!(entry->the_bfd->flags & DYNAMIC))
+ bfd_map_over_sections (entry->the_bfd, section_already_linked, entry);
}
void