This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
early section sizing vs dynamic symbols
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Fri, 25 Jun 2010 14:15:05 +0930
- Subject: early section sizing vs dynamic symbols
The powerpc64 linker backend needs to make a preliminary section
sizing pass, so that tls and toc optimization can be done before
dynamic sections are allocated. Running one_lang_size_sections_pass
also processes linker script assignments, turning etree_provide nodes
into etree_provided. This unfortunately results in
bfd_elf_record_link_assignment not being called. Fixed as follows.
* emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
Index: ld/emultempl/elf32.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/elf32.em,v
retrieving revision 1.208
diff -u -p -r1.208 elf32.em
--- ld/emultempl/elf32.em 14 Jan 2010 04:56:11 -0000 1.208
+++ ld/emultempl/elf32.em 25 Jun 2010 00:52:41 -0000
@@ -1340,6 +1340,7 @@ gld${EMULATION_NAME}_find_exp_assignment
switch (exp->type.node_class)
{
case etree_provide:
+ case etree_provided:
provide = TRUE;
/* Fall thru */
case etree_assign:
--
Alan Modra
Australia Development Lab, IBM