203f98615922b6c146b36bd1aec476c85a89b3ea
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2012-04-02 Mike Frysinger <vapier@gentoo.org>
2
3 * ldmisc.c (vfinfo): Assign new local str to fmt. Delete
4 putc call. If str and fmt are different, call fwrite on
5 the difference.
6
7 2012-03-30 Nick Clifton <nickc@redhat.com>
8
9 * po/vi.po: Updated Vietnamese translation.
10
11 2012-03-27 Roland McGrath <mcgrathr@google.com>
12
13 * configure.in: Set want64 on a 64-bit host regardless of
14 --enable-targets=all.
15 * configure: Regenerated.
16
17 2012-03-26 Tristan Gingold <gingold@adacore.com>
18
19 * lexsup.c (parse_args): Add a missing '\n'.
20
21 2012-03-25 Alan Modra <amodra@gmail.com>
22
23 * ldemul.c (before_allocation_default): Revert last change.
24 ldlang.c (lang_add_section): Likewise.
25 (strip_excluded_output_sections): Don't strip output sections with
26 user input sections when emitrelocations, unless all are SEC_EXCLUDE.
27
28 2012-03-23 Alan Modra <amodra@gmail.com>
29
30 * ldemul.c (before_allocation_default): When emitrelocations,
31 don't strip sections..
32 * ldlang.c (lang_add_section): ..and don't set up map_head, map_tail.
33
34 2012-03-14 Kai Tietz <ktietz@redhat.com>
35 Pascal Obry <pascal@obry.net>
36
37 * pe-dll.c (found_sym): New static variable.
38 (undef_count): Likewise.
39 (key_value): New structure.
40 (undef_sort_cmp): Compare routine for qsort/bsearch.
41 (pe_find_cdecl_alias_match): Add new argument.
42 (pe_undef_alias_cdecl_match): Removed.
43 (pe_undef_count): New helper routine.
44 (pe_create_undef_table): Likewise.
45 (pe_process_import_defs): Use pe_create_undef_table and
46 new pe_undef_alias_cdecl_match function.
47
48 2012-03-14 Alan Modra <amodra@gmail.com>
49
50 PR ld/13839
51 * ldexp.c (fold_name): Ignore undefined symbols when assigning to
52 dot in mark phase.
53 (exp_fold_tree_1): Evaluate assignment to dot expressions even when
54 discarding result, for side effects. Fix typo in error message.
55
56 2012-03-08 Tristan Gingold <gingold@adacore.com>
57
58 * ldexp.c (exp_print_tree): Special case for SEGMENT_START.
59 (exp_print_token): Constify.
60
61 2012-03-08 Alan Modra <amodra@gmail.com>
62
63 PR ld/10340
64 * ldfile.c (is_sysrooted_pathname): Remove notsame param.
65 (ldfile_add_library_path): Don't set sysrooted flag.
66 (ldfile_open_file_search): Likewise, and don't copy them.
67 (try_open): Delete exten and code handling such. Add sysrooted
68 param and return whether path is in sysroot.
69 (ldfile_find_command_file): Delete extend param. Add sysrooted
70 param. Rename local var. Update try_open calls.
71 (ldfile_open_command_file_1): Pass sysrooted to lex_push_file.
72 * ldfile.h (search_dirs_type): Remove sysrooted field.
73 * ldlang.c (new_afile): Always set sysrooted from input_flags.
74 (load_symbols): Don't set input_flags.sysrooted.
75 * ldlang.h (struct lang_input_statement_flags): Revise sysrooted
76 comment.
77 * ldlex.h (lex_push_file): Update prototype.
78 * ldlex.l (sysrooted_stack): New array.
79 (EOF): Pop input_flags.sysrooted.
80 (lex_push_file): Add sysrooted param. Save and set
81 input_flags.sysrooted.
82
83 2012-03-06 Alan Modra <amodra@gmail.com>
84
85 * ldlang.h (struct lang_input_statement_flags): New, extract from..
86 (lang_input_statement_type): ..here. New field "flags".
87 (input_flags): Declare.
88 (missing_file): Delete.
89 * ldmain.h (whole_archive): Delete.
90 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
91 * ld.h (ld_config_type <dynamic_link>): Delete.
92 * ldmain.c (whole_archive): Delete.
93 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
94 * ldlang.c (missing_file, ldlang_sysrooted_script): Delete.
95 (input_flags): New variable. Replace all uses of config.dynamic_link,
96 missing_file, ldlang_sysrooted_script, whole_archive,
97 add_DT_NEEDED_for_regular and add_DT_NEEDED_for_dynamic with fields
98 from here.
99 * ldfile.c: Likewise.
100 * ldgram.y: Likewise.
101 * ldmain.c: Likewise.
102 * ldwrite.c: Likewise.
103 * lexsup.c: Likewise.
104 * plugin.c: Likewise.
105 * emultempl/aix.em: Likewise.
106 * emultempl/armelf.em: Likewise.
107 * emultempl/elf32.em: Likewise.
108 * emultempl/hppaelf.em: Likewise.
109 * emultempl/linux.em: Likewise.
110 * emultempl/pe.em: Likewise.
111 * emultempl/pep.em: Likewise.
112 * emultempl/ppc64elf.em: Likewise.
113 * emultempl/scoreelf.em: Likewise.
114 * emultempl/spuelf.em: Likewise.
115 * emultempl/sunos.em: Likewise.
116 * emultempl/vms.em: Likewise.
117 * ldlang.c (new_afile): Use memset to init zero fields.
118 (load_symbols): Simplify save and restore of flags around command
119 file processing.
120 * ldfile.c (is_sysrooted_pathname): Tidy.
121
122 2012-03-05 Hans-Peter Nilsson <hp@axis.com>
123
124 * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
125 (mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by
126 replacing trailing "-*" with "*".
127
128 2012-02-25 Walter Lee <walt@tilera.com>
129
130 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c.
131 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c.
132 (eelf32tilegx_be.c): Add rule to build this file.
133 (eelf64tilegx_be.c): Ditto.
134 * Makefile.in: Regenerate.
135 * configure.tgt (tilegx-*-*): Support big endian.
136 (tilegxbe-*-*): New.
137 * emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename.
138 (BIG_OUTPUT_FORMAT): Define.
139 (LITTLE_OUTPUT_FORMAT): Define.
140 * emulparams/elf32tilegx_be.sh: New.
141 * emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename.
142 (BIG_OUTPUT_FORMAT): Define.
143 (LITTLE_OUTPUT_FORMAT): Define.
144 * emulparams/elf64tilegx_be.sh: New.
145
146 2012-02-24 Kai Tietz <ktietz@redhat.com>
147
148 PR binutils/13710
149 * deffilep.y (keyword_as_name): Disable LIBRARY
150 keyword.
151
152 2012-02-22 Alan Modra <amodra@gmail.com>
153
154 PR ld/13683
155 * ldlang.c (lang_process): Rerun lang_do_assignments before
156 starting garbage collection.
157 * ldexp.c (fold_name): Generate a reloc for defined symbols
158 found without an associated output section during the mark phase.
159 (exp_fold_tree_1): Continue processing an expression, even if we
160 are unable to fold it, if we are in the first two evaluation
161 phases.
162 * ldexp.h (enum lang_phase_type): Add descriptions of the phases.
163
164 2012-02-19 Kai Tietz <ktietz@redhat.com>
165
166 * deffilep.y (cmp_import_elem): Sort first by module name.
167 * pe-dll.c (process_def_file_and_drectve): Free strings
168 from removed export-element.
169 (add_bfd_to_link): Optimize loop on import-elements and lower
170 allocated memory.
171 (pe_implied_import_dll): Pass NULL instead of 0 for pointer
172 argument.
173
174 2012-02-18 Hans-Peter Nilsson <hp@axis.com>
175
176 * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
177 temporary variable node used for NULL argument.
178
179 2012-02-18 Alan Modra <amodra@gmail.com>
180
181 PR ld/13343
182 * ld.h (parsing_defsym): Delete.
183 * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
184 (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
185 exp_get_abs_int): Add tree arg for %S in error messages. Don't
186 fudge lineno.
187 (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
188 type.filename from sub-tree.
189 (exp_trinop): Likewise, and use "cond" rather than "lhs".
190 * ldexp.h (node_type): Add filename field to struct.
191 * ldfile.c (ldfile_input_filename): Delete. Remove all refs.
192 * ldfile.h (ldfile_input_filename): Delete.
193 * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
194 %S in error messages.
195 * ldemul.c (syslib_default, hll_default): Likewise.
196 * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
197 lang_get_regions, lang_new_phdr): Likewise.
198 (lang_size_sections_1): Pass addr_tree for %S.
199 * ldlex.h (lex_redirect): Update prototype.
200 (ldlex_filename): Declare.
201 * ldlex.l (<EOF>): Don't set ldfile_input_filename.
202 (lex_redirect): Add fake_filename and count params. Push
203 fake_filename to file_name_stack and init lineno from count.
204 (ldlex_filename): New function.
205 (lex_warn_invalid): Use above.
206 * ldmain.c (main): Update lex_redirect call.
207 * ldmisc.c (vfinfo <%S>): Take file name and line number from
208 etree_type arg, or use current if arg is NULL.
209 * lexsup.c (parsing_defsym): Delete.
210 (parse_args <OPTION_DEFSYM>): Update lex_redirect call.
211
212 2012-02-13 Kai Tietz <ktietz@redhat.com>
213
214 * deffilep.y (find_export_in_list): Set is_indent for
215 first or last element, if identical.
216 (find_import_in_list): Likewise.
217
218 2012-02-11 Kai Tietz <ktietz@redhat.com>
219
220 * deffilep.y (%union): New type id_const.
221 (opt_name2): New rule.
222 (keyword_as_name): New rule.
223 (dot_name): Replaced by opt_name2 rule.
224 (opt_name): Adjust rule.
225 (opt_equal_name): Likewise.
226
227 2012-02-11 Pascal Obry <pascal@obry.net>
228
229 * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
230 table.
231 (process_def_file_and_drectve): Maintain sorting of exports table
232 after stripping leading @ signs.
233
234 2012-02-09 Alan Modra <amodra@gmail.com>
235
236 * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
237
238 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
239
240 PR ld/13616
241 * emulparams/elf32_x86_64.sh: Remove NOP.
242 * emulparams/elf_i386.sh: Likewise.
243 * emulparams/elf_i386_be.sh: Likewise.
244 * emulparams/elf_i386_ldso.sh: Likewise.
245 * emulparams/elf_i386_vxworks.sh: Likewise.
246 * emulparams/elf_k1om.sh: Likewise.
247 * emulparams/elf_l1om.sh: Likewise.
248 * emulparams/elf_x86_64.sh: Likewise.
249
250 * ldlang.c (zero_fill): Initialized to 0.
251
252 * ldwrite.c (build_link_order): Set data size to linker odrder
253 size when they are the same.
254
255 * scripttempl/elf.sc: Don't specify fill if NOP is undefined.
256
257 2012-01-17 Alan Modra <amodra@gmail.com>
258
259 * ldver.c (ldversion): Update copyright message year.
260
261 2012-01-15 Alan Modra <amodra@gmail.com>
262
263 PR ld/12758
264 * ldlang.c (lang_process): Don't reopen all files, just those
265 newly added by plugin.
266
267 2012-01-11 Alan Modra <amodra@gmail.com>
268
269 * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE,
270 PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
271 PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and
272 --{no-,}plt-align.
273 (plt_thread_safe, plt_stub_align): New vars.
274 (gld${EMULATION_NAME}_after_allocation): Pass them to
275 ppc64_elf_size_stubs. Align stub sections according to plt_stub_align.
276 * ld.texinfo: Document new command line options, and an old
277 undocumented option.
278
279 2012-01-09 Roland McGrath <mcgrathr@google.com>
280
281 * configure.in: Use AM_ZLIB.
282 * configure: Regenerated.
283
284 For older changes see ChangeLog-2011
285 \f
286 Local Variables:
287 mode: change-log
288 left-margin: 8
289 fill-column: 74
290 version-control: never
291 End:
This page took 0.035788 seconds and 4 git commands to generate.