Display the reference causing a shared library to be needed
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2014-01-22 Alan Modra <amodra@gmail.com>
2
3 * ldlang.c (asneeded_list_head, asneeded_list_tail): New vars.
4 (lang_init): Initialise them.
5 (lang_print_asneeded): New function.
6 (lang_process): Call lang_print_asneeded.
7 * ldlang.h (struct asneeded_minfo): New.
8 (asneeded_list_tail): Declare.
9 * ldmain.c (add_archive_element): Improve archive map heading.
10 * ldmisc.c (minfo): Stash --as-needed info.
11
12 2014-01-22 Alan Modra <amodra@gmail.com>
13
14 * ld.h (struct map_symbol_def): Move to..
15 * ldlang.h: ..here.
16 * ldlang.c (print_assignment): Don't set expld.assign_name to dot.
17
18 2014-01-22 Alan Modra <amodra@gmail.com>
19
20 * ld.texinfo (Output Section Discarding): Mention assigning to dot
21 as a way of keeping otherwise empty sections.
22 * ldexp.c (is_dot, is_value, is_sym_value, is_dot_ne_0,
23 is_dot_plus_0, is_align_conditional): New predicates.
24 (exp_fold_tree_1): Set SEC_KEEP when assigning to dot inside an
25 output section, except for some special cases.
26 * scripttempl/elfmicroblaze.sc: Use canonical form to align at
27 end of .heap and .stack.
28
29 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
30
31 * emulparams/aarch64linuxb.sh (ELF_INTERPRETER_NAME): Define.
32
33 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
34
35 * emulparams/aarch64linux.sh (ELF_INTERPRETER_NAME): Define.
36
37 2014-01-20 Alan Modra <amodra@gmail.com>
38
39 * ldlang.h (struct lang_definedness_hash_entry): Add by_object and
40 by_script. Make iteration a single bit field.
41 (lang_track_definedness, lang_symbol_definition_iteration): Delete.
42 (lang_symbol_defined): Declare.
43 * ldlang.c (lang_statement_iteration): Expand comment a little.
44 (lang_init <lang_definedness_table>): Make it bigger.
45 (lang_track_definedness, lang_symbol_definition): Delete.
46 (lang_definedness_newfunc): Update.
47 (lang_symbol_defined): New function.
48 (lang_update_definedness): Create entries here. Do track whether
49 script definition of symbol is valid, even when also defined in
50 an object file.
51 * ldexp.c (fold_name <DEFINED>): Update.
52 (fold_name <NAME>): Allow self-assignment for absolute symbols
53 defined in a linker script.
54
55 2014-01-20 Guy Martin <gmsoft@tuxicoman.be>
56 Alan Modra <amodra@gmail.com>
57
58 * ldlang.h (lang_output_section_get): Define.
59 * ldlang.c (lang_output_section_get): Likewise.
60 (init_os): Set the output_section userdata to the output
61 section statement.
62 * emultempl/hppaelf.em: Use lang_output_section_get instead of
63 lang_output_section_find where applicable.
64 * emultempl/aarch64elf.em: Likewise.
65 * emultempl/aix.em: Likewise.
66 * emultempl/armelf.em: Likewise.
67 * emultempl/m68hc1xelf.em: Likewise.
68 * emultempl/metagelf.em: Likewise.
69 * emultempl/mipself.em: Likewise.
70 * emultempl/ppc64elf.em: Likewise.
71 * emultempl/spuelf.em: Likewise.
72
73 2014-01-17 Alan Modra <amodra@gmail.com>
74
75 * genscripts.sh (COMPILE_IN): Don't set if already set.
76 * emulparams/nds32elf.sh: Don't clear EMULATION_LIBPATH, set
77 COMPILE_IN=no.
78 * emulparams/nds32elf16m.sh: Likewise.
79 * emulparams/nds32elf_linux.sh: Likewise.
80 * emultempl/aix.em: Test COMPILE_IN value is "yes".
81 * emultempl/armcoff.em: Likewise.
82 * emultempl/elf32.em: Likewise.
83 * emultempl/generic.em: Likewise.
84 * emultempl/gld960.em: Likewise.
85 * emultempl/gld960c.em: Likewise.
86 * emultempl/linux.em: Likewise.
87 * emultempl/lnk960.em: Likewise.
88 * emultempl/m68kcoff.em: Likewise.
89 * emultempl/sunos.em: Likewise.
90 * emultempl/ticoff.em: Likewise.
91
92 2014-01-16 H.J. Lu <hongjiu.lu@intel.com>
93
94 PR ld/16456
95 * genscripts.sh: Don't search directory with LIBPATH_SUFFIX_SKIP
96 suffix.
97 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX_SKIP): Set to 64
98 for elf32_x86_64 emulation.
99 * emulparams/elf_i386.sh (LIBPATH_SUFFIX_SKIP): Set to 64
100 for elf_i386 emulation.
101
102 2014-01-16 Alan Modra <amodra@gmail.com>
103
104 * ld.h (fat_section_userdata_type, get_userdata): Move to..
105 * ldlang.h (input_section_userdata_type, get_userdata): ..here.
106 * ldlang.c (init_map_userdata): Delete. Fold into..
107 (sort_def_symbol): ..here. Don't attach input section userdata
108 to output sections or global bfd sections.
109 (lang_map): Don't pre-allocate input section userdata.
110 (init_os): Don't allocate userdata for output sections.
111 (print_all_symbols): Update.
112
113 2014-01-15 H.J. Lu <hongjiu.lu@intel.com>
114
115 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
116 Silence uninitialized warning on ehdr_start_save with older
117 GCC.
118
119 2014-01-15 Alan Modra <amodra@gmail.com>
120
121 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define
122 __ehdr_start before size_dynamic_sections and restore afterwards.
123
124 2014-01-10 Alan Modra <amodra@gmail.com>
125
126 PR ld/14207
127 PR ld/16322
128 PR binutils/16323
129 * ldlang.c (lang_size_sections): Remove unneeded RELRO base
130 adjust. Tidy comments.
131 * ld.texinfo (DATA_SEGMENT_RELRO_END): Correct description.
132
133 2014-01-10 Hans-Peter Nilsson <hp@axis.com>
134
135 * emulparams/crislinux.sh (COMMONPAGESIZE): Define.
136
137 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
138
139 PR ld/14207
140 PR ld/16322
141 PR binutils/16323
142 * ldlang.c (lang_size_sections): Properly align RELRO base.
143
144 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
145
146 * ldver.c (ldversion): Update copyright year to 2014.
147
148 For older changes see ChangeLog-2013
149 \f
150 Copyright (C) 2014 Free Software Foundation, Inc.
151
152 Copying and distribution of this file, with or without modification,
153 are permitted in any medium without royalty provided the copyright
154 notice and this notice are preserved.
155
156 Local Variables:
157 mode: change-log
158 left-margin: 8
159 fill-column: 74
160 version-control: never
161 End:
This page took 0.032699 seconds and 5 git commands to generate.