PR 13697
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2012-06-07 Georg-Johann Lay <avr@gjlay.de>
2
3 PR 13697
4 * scripttempl/avr.sc (.data): Keep it.
5
6 2012-06-02 Andreas Schwab <schwab@linux-m68k.org>
7
8 * Makefile.am (TEXINFO_TEX): Remove $(top_srcdir) prefix.
9 * Makefile.in: Regenerate.
10
11 2012-05-30 Alan Modra <amodra@gmail.com>
12
13 * ldlang.h (lang_output_section_statement_type): Rename
14 "section_relative_symbol" field to "update_dot".
15 * ldlang.c: Update all uses.
16 (strip_excluded_output_sections): Don't test update_dot_tree here..
17 (lang_leave_overlay): ..set update_dot here.
18
19 2012-05-26 Alan Modra <amodra@gmail.com>
20
21 * ldlex.h (enum option_values): Move from..
22 * lexsup.c: ..here.
23 * emultempl/ppc32elf.em: Include ldlex.h.
24 (PARSE_AND_LIST_ARGS_CASES): Disable optimisations when
25 --traditional-format.
26 * emultempl/ppc64elf.em: Likewise.
27
28 2012-05-25 Alan Modra <amodra@gmail.com>
29
30 PR ld/13909
31 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Handle
32 multiple .eh_frame sections attached to bfd.
33
34 2012-05-23 Cary Coutant <ccoutant@google.com>
35
36 * scripttempl/armbpabi.sc: Match .data.rel.ro.* sections more
37 carefully. Fix typo where .rela.data.rel.ro matches
38 .rel.data.rel.ro.
39 * scripttempl/mep.sc: Likewise.
40 * scripttempl/elf.sc: Match .data.rel.ro.* sections more carefully.
41 * scripttempl/elf64hppa.sc: Likewise.
42 * scripttempl/elfxtensa.sc: Likewise.
43
44 2012-05-17 Daniel Richard G. <skunk@iskunk.org>
45 Nick Clifton <nickc@redhat.com>
46
47 PR 14072
48 * configure.in: Add check that sysdep.h has been included before
49 any system header files.
50 * configure: Regenerate.
51 * config.in: Regenerate.
52 * sysdep.h: Generate an error if included before config.h.
53
54 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
55
56 * emultempl/m68hc1xelf.em (hook_in_stub): Pass proper `bfd'
57 as the first argument for `bfd_get_section_name'.
58
59 2012-05-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
60
61 PR ld/14069
62 * emultempl/elf32.em: Include *-*-gnu* targets in ld.so.conf
63 support.
64
65 2012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
66
67 * NEWS: Mention the support for S12X processors.
68
69 2012-05-14 James Lemke <jwlemke@codesourcery.com>
70
71 * ldlang.c (walk_wild_consider_section): Don't copy section_flag_list.
72 Pass it to callback.
73 (walk_wild_section_general): Pass section_flag_list to callback.
74 (lang_add_section): Add sflag_list parm.
75 Move out logic to keep / omit a section & call bfd_lookup_section_flags.
76 (output_section_callback_fast): Add sflag_list parm.
77 Add new parm to lang_add_section calls.
78 (output_section_callback): Likewise.
79 (check_section_callback): Add sflag_list parm.
80 (lang_place_orphans): Add new parm to lang_add_section calls.
81 (gc_section_callback): Add sflag_list parm.
82 (find_relro_section_callback): Likewise.
83 * ldlang.h (callback_t): Add flag_info parm.
84 (lang_add_section): Add sflag_list parm.
85 * emultempl/armelf.em (elf32_arm_add_stub_section):
86 Add lang_add_section parm.
87 * emultempl/beos.em (gld*_place_orphan): Likewise.
88 * emultempl/elf32.em (gld*_place_orphan): Likewise.
89 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
90 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
91 * emultempl/mipself.em (mips_add_stub_section): Likewise.
92 * emultempl/mmo.em (mmo_place_orphan): Likewise.
93 * emultempl/pe.em (gld_*_place_orphan): Likewise.
94 * emultempl/pep.em (gld_*_place_orphan): Likewise.
95 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
96 * emultempl/spuelf.em (spu_place_special_section): Likewise.
97 * emultempl/vms.em (vms_place_orphan): Likewise.
98
99 2012-05-14 Catherine Moore <clm@codesourcery.com>
100
101 * NEWS: Mention PowerPC VLE port.
102
103 2012-05-11 Daniel Richard G. <skunk@iskunk.org>
104
105 PR binutils/14028
106 * configure.in: Invoke ACX_HEADER_STRING.
107 * configure: Regenerate.
108 * config.in: Regenerate.
109 * sysdep.h: If STRINGS_WITH_STRING is defined then include both
110 string.h and strings.h.
111
112 2012-05-08 Alan Modra <amodra@gmail.com>
113
114 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
115 LC and LANG environment vars.
116 * Makefile.in: Regenerate.
117
118 2012-05-07 Tristan Gingold <gingold@adacore.com>
119
120 * pe-dll.c (udef_table): Make it static.
121
122 2012-05-05 Alan Modra <amodra@gmail.com>
123
124 * pe-dll.c (process_def_file_and_drectve): Use bfd_und_section_ptr.
125 (generate_reloc): Use bfd_abs_section_ptr.
126
127 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
128
129 * configure.tgt: Support x86_64-*-linux-gnux32.
130
131 2012-05-03 Sean Keys <skeys@ipdatasys.com>
132
133 * Makefile.am (ALL_EMULATIONS): Added new emulation for XGATE
134 and XGATE (elf).
135 * Makefile.in: Rebuild.
136 * configure.tgt: Recognize XGATE.
137 * scripttempl/elfxgate.sc: New file, mostly cloned from m68hc12.
138 * emulparams/xgateelf: New emulation, mostly cloned from m68hc12.
139 * NEWS: Mention new support.
140
141 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
142
143 Make bfd asserts cause linker errors.
144 * ldmain.c (default_bfd_assert_handler): New variable.
145 (ld_bfd_assert_handler): New function.
146 (main): Call bfd_set_assert_handler.
147
148 2012-04-24 Alan Modra <amodra@gmail.com>
149
150 * ldlang.c (size_input_section): Use sec_info_type rather than
151 usrdata->flags.just_syms.
152 * ldwrite.c (build_link_order): Likewise.
153 * emultempl/hppaelf.em (build_section_lists): Likewise.
154 * emultempl/ppc64elf.em (build_toc_list): Likewise.
155 * emultempl/armelf.em (build_section_lists): Likewise.
156 (after_allocation): Update for renamed sec_info_type value.
157 * emultempl/tic6xdsbt.em: Likewise.
158
159 2012-04-12 Roland McGrath <mcgrathr@google.com>
160
161 * configure.tgt (arm*-*-nacl*, arm*b-*-nacl*): Handle them.
162 * emulparams/armelf_nacl.sh: New file.
163 * emulparams/armelfb_nacl.sh: New file.
164 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelf_nacl.c
165 and earmelfb_nacl.c here.
166 (earmelf_nacl.c, earmelfb_nacl.c): New targets.
167 * Makefile.in: Regenerated.
168
169 2012-04-11 Tristan Gingold <gingold@adacore.com>
170
171 * scripttempl/ia64vms.sc: New file.
172 * emultempl/vms.em (_before_parse): Support for ia64.
173 (elf64-ia64-vms): New fragment for ia64.
174 * emulparams/elf64_ia64_vms.sh: New file.
175 * configure.tgt (ia64-*-*vms*): Add.
176 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64_ia64_vms.c
177 (eelf64_ia64_vms.c): New rule.
178 * Makefile.in: Regenerate.
179
180 2012-04-06 Roland McGrath <mcgrathr@google.com>
181
182 * configure.in (AC_CHECK_HEADERS): Add locale.h.
183 * config.in: Regenerate.
184 * configure: Regenerate.
185
186 2012-04-05 Nick Clifton <nickc@redhat.com>
187
188 * configure.in (AC_CHECK_FUNCS): Add setlocale.
189 (AM_LC_MESSAGES): Add.
190 * aclocal.m4: Regenerate.
191 * config.in: Regenerate.
192 * configure: Regenerate.
193
194 2012-04-03 Roland McGrath <mcgrathr@google.com>
195
196 * configure.tgt (i[3-7]86-*-nacl*, x86_64-*-nacl*): Handle them.
197 * emulparams/elf_nacl.sh: New file.
198 * emulparams/elf_i386_nacl.sh: New file.
199 * emulparams/elf32_x86_64_nacl.sh: New file.
200 * emulparams/elf_x86_64_nacl.sh: New file.
201 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_i386_nacl.c here.
202 (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64_nacl.c and
203 eelf_x86_64_nacl.c here.
204 (eelf_i386_nacl.c, eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c):
205 New targets.
206 * Makefile.in: Regenerated.
207
208 * scripttempl/elf.sc: Handle SEPARATE_CODE cases.
209
210 2012-04-02 Mike Frysinger <vapier@gentoo.org>
211
212 * ldmisc.c (vfinfo): Assign new local str to fmt. Delete
213 putc call. If str and fmt are different, call fwrite on
214 the difference.
215
216 2012-03-30 Nick Clifton <nickc@redhat.com>
217
218 * po/vi.po: Updated Vietnamese translation.
219
220 2012-03-27 Roland McGrath <mcgrathr@google.com>
221
222 * configure.in: Set want64 on a 64-bit host regardless of
223 --enable-targets=all.
224 * configure: Regenerated.
225
226 2012-03-26 Tristan Gingold <gingold@adacore.com>
227
228 * lexsup.c (parse_args): Add a missing '\n'.
229
230 2012-03-25 Alan Modra <amodra@gmail.com>
231
232 * ldemul.c (before_allocation_default): Revert last change.
233 * ldlang.c (lang_add_section): Likewise.
234 (strip_excluded_output_sections): Don't strip output sections with
235 user input sections when emitrelocations, unless all are SEC_EXCLUDE.
236
237 2012-03-23 Alan Modra <amodra@gmail.com>
238
239 * ldemul.c (before_allocation_default): When emitrelocations,
240 don't strip sections..
241 * ldlang.c (lang_add_section): ..and don't set up map_head, map_tail.
242
243 2012-03-14 Kai Tietz <ktietz@redhat.com>
244 Pascal Obry <pascal@obry.net>
245
246 * pe-dll.c (found_sym): New static variable.
247 (undef_count): Likewise.
248 (key_value): New structure.
249 (undef_sort_cmp): Compare routine for qsort/bsearch.
250 (pe_find_cdecl_alias_match): Add new argument.
251 (pe_undef_alias_cdecl_match): Removed.
252 (pe_undef_count): New helper routine.
253 (pe_create_undef_table): Likewise.
254 (pe_process_import_defs): Use pe_create_undef_table and
255 new pe_undef_alias_cdecl_match function.
256
257 2012-03-14 Alan Modra <amodra@gmail.com>
258
259 PR ld/13839
260 * ldexp.c (fold_name): Ignore undefined symbols when assigning to
261 dot in mark phase.
262 (exp_fold_tree_1): Evaluate assignment to dot expressions even when
263 discarding result, for side effects. Fix typo in error message.
264
265 2012-03-08 Tristan Gingold <gingold@adacore.com>
266
267 * ldexp.c (exp_print_tree): Special case for SEGMENT_START.
268 (exp_print_token): Constify.
269
270 2012-03-08 Alan Modra <amodra@gmail.com>
271
272 PR ld/10340
273 * ldfile.c (is_sysrooted_pathname): Remove notsame param.
274 (ldfile_add_library_path): Don't set sysrooted flag.
275 (ldfile_open_file_search): Likewise, and don't copy them.
276 (try_open): Delete exten and code handling such. Add sysrooted
277 param and return whether path is in sysroot.
278 (ldfile_find_command_file): Delete extend param. Add sysrooted
279 param. Rename local var. Update try_open calls.
280 (ldfile_open_command_file_1): Pass sysrooted to lex_push_file.
281 * ldfile.h (search_dirs_type): Remove sysrooted field.
282 * ldlang.c (new_afile): Always set sysrooted from input_flags.
283 (load_symbols): Don't set input_flags.sysrooted.
284 * ldlang.h (struct lang_input_statement_flags): Revise sysrooted
285 comment.
286 * ldlex.h (lex_push_file): Update prototype.
287 * ldlex.l (sysrooted_stack): New array.
288 (EOF): Pop input_flags.sysrooted.
289 (lex_push_file): Add sysrooted param. Save and set
290 input_flags.sysrooted.
291
292 2012-03-06 Alan Modra <amodra@gmail.com>
293
294 * ldlang.h (struct lang_input_statement_flags): New, extract from..
295 (lang_input_statement_type): ..here. New field "flags".
296 (input_flags): Declare.
297 (missing_file): Delete.
298 * ldmain.h (whole_archive): Delete.
299 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
300 * ld.h (ld_config_type <dynamic_link>): Delete.
301 * ldmain.c (whole_archive): Delete.
302 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
303 * ldlang.c (missing_file, ldlang_sysrooted_script): Delete.
304 (input_flags): New variable. Replace all uses of config.dynamic_link,
305 missing_file, ldlang_sysrooted_script, whole_archive,
306 add_DT_NEEDED_for_regular and add_DT_NEEDED_for_dynamic with fields
307 from here.
308 * ldfile.c: Likewise.
309 * ldgram.y: Likewise.
310 * ldmain.c: Likewise.
311 * ldwrite.c: Likewise.
312 * lexsup.c: Likewise.
313 * plugin.c: Likewise.
314 * emultempl/aix.em: Likewise.
315 * emultempl/armelf.em: Likewise.
316 * emultempl/elf32.em: Likewise.
317 * emultempl/hppaelf.em: Likewise.
318 * emultempl/linux.em: Likewise.
319 * emultempl/pe.em: Likewise.
320 * emultempl/pep.em: Likewise.
321 * emultempl/ppc64elf.em: Likewise.
322 * emultempl/scoreelf.em: Likewise.
323 * emultempl/spuelf.em: Likewise.
324 * emultempl/sunos.em: Likewise.
325 * emultempl/vms.em: Likewise.
326 * ldlang.c (new_afile): Use memset to init zero fields.
327 (load_symbols): Simplify save and restore of flags around command
328 file processing.
329 * ldfile.c (is_sysrooted_pathname): Tidy.
330
331 2012-03-05 Hans-Peter Nilsson <hp@axis.com>
332
333 * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
334 (mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by
335 replacing trailing "-*" with "*".
336
337 2012-02-25 Walter Lee <walt@tilera.com>
338
339 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c.
340 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c.
341 (eelf32tilegx_be.c): Add rule to build this file.
342 (eelf64tilegx_be.c): Ditto.
343 * Makefile.in: Regenerate.
344 * configure.tgt (tilegx-*-*): Support big endian.
345 (tilegxbe-*-*): New.
346 * emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename.
347 (BIG_OUTPUT_FORMAT): Define.
348 (LITTLE_OUTPUT_FORMAT): Define.
349 * emulparams/elf32tilegx_be.sh: New.
350 * emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename.
351 (BIG_OUTPUT_FORMAT): Define.
352 (LITTLE_OUTPUT_FORMAT): Define.
353 * emulparams/elf64tilegx_be.sh: New.
354
355 2012-02-24 Kai Tietz <ktietz@redhat.com>
356
357 PR binutils/13710
358 * deffilep.y (keyword_as_name): Disable LIBRARY
359 keyword.
360
361 2012-02-22 Alan Modra <amodra@gmail.com>
362
363 PR ld/13683
364 * ldlang.c (lang_process): Rerun lang_do_assignments before
365 starting garbage collection.
366 * ldexp.c (fold_name): Generate a reloc for defined symbols
367 found without an associated output section during the mark phase.
368 (exp_fold_tree_1): Continue processing an expression, even if we
369 are unable to fold it, if we are in the first two evaluation
370 phases.
371 * ldexp.h (enum lang_phase_type): Add descriptions of the phases.
372
373 2012-02-19 Kai Tietz <ktietz@redhat.com>
374
375 * deffilep.y (cmp_import_elem): Sort first by module name.
376 * pe-dll.c (process_def_file_and_drectve): Free strings
377 from removed export-element.
378 (add_bfd_to_link): Optimize loop on import-elements and lower
379 allocated memory.
380 (pe_implied_import_dll): Pass NULL instead of 0 for pointer
381 argument.
382
383 2012-02-18 Hans-Peter Nilsson <hp@axis.com>
384
385 * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
386 temporary variable node used for NULL argument.
387
388 2012-02-18 Alan Modra <amodra@gmail.com>
389
390 PR ld/13343
391 * ld.h (parsing_defsym): Delete.
392 * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
393 (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
394 exp_get_abs_int): Add tree arg for %S in error messages. Don't
395 fudge lineno.
396 (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
397 type.filename from sub-tree.
398 (exp_trinop): Likewise, and use "cond" rather than "lhs".
399 * ldexp.h (node_type): Add filename field to struct.
400 * ldfile.c (ldfile_input_filename): Delete. Remove all refs.
401 * ldfile.h (ldfile_input_filename): Delete.
402 * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
403 %S in error messages.
404 * ldemul.c (syslib_default, hll_default): Likewise.
405 * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
406 lang_get_regions, lang_new_phdr): Likewise.
407 (lang_size_sections_1): Pass addr_tree for %S.
408 * ldlex.h (lex_redirect): Update prototype.
409 (ldlex_filename): Declare.
410 * ldlex.l (<EOF>): Don't set ldfile_input_filename.
411 (lex_redirect): Add fake_filename and count params. Push
412 fake_filename to file_name_stack and init lineno from count.
413 (ldlex_filename): New function.
414 (lex_warn_invalid): Use above.
415 * ldmain.c (main): Update lex_redirect call.
416 * ldmisc.c (vfinfo <%S>): Take file name and line number from
417 etree_type arg, or use current if arg is NULL.
418 * lexsup.c (parsing_defsym): Delete.
419 (parse_args <OPTION_DEFSYM>): Update lex_redirect call.
420
421 2012-02-13 Kai Tietz <ktietz@redhat.com>
422
423 * deffilep.y (find_export_in_list): Set is_indent for
424 first or last element, if identical.
425 (find_import_in_list): Likewise.
426
427 2012-02-11 Kai Tietz <ktietz@redhat.com>
428
429 * deffilep.y (%union): New type id_const.
430 (opt_name2): New rule.
431 (keyword_as_name): New rule.
432 (dot_name): Replaced by opt_name2 rule.
433 (opt_name): Adjust rule.
434 (opt_equal_name): Likewise.
435
436 2012-02-11 Pascal Obry <pascal@obry.net>
437
438 * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
439 table.
440 (process_def_file_and_drectve): Maintain sorting of exports table
441 after stripping leading @ signs.
442
443 2012-02-09 Alan Modra <amodra@gmail.com>
444
445 * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
446
447 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
448
449 PR ld/13616
450 * emulparams/elf32_x86_64.sh: Remove NOP.
451 * emulparams/elf_i386.sh: Likewise.
452 * emulparams/elf_i386_be.sh: Likewise.
453 * emulparams/elf_i386_ldso.sh: Likewise.
454 * emulparams/elf_i386_vxworks.sh: Likewise.
455 * emulparams/elf_k1om.sh: Likewise.
456 * emulparams/elf_l1om.sh: Likewise.
457 * emulparams/elf_x86_64.sh: Likewise.
458
459 * ldlang.c (zero_fill): Initialized to 0.
460
461 * ldwrite.c (build_link_order): Set data size to linker odrder
462 size when they are the same.
463
464 * scripttempl/elf.sc: Don't specify fill if NOP is undefined.
465
466 2012-01-17 Alan Modra <amodra@gmail.com>
467
468 * ldver.c (ldversion): Update copyright message year.
469
470 2012-01-15 Alan Modra <amodra@gmail.com>
471
472 PR ld/12758
473 * ldlang.c (lang_process): Don't reopen all files, just those
474 newly added by plugin.
475
476 2012-01-11 Alan Modra <amodra@gmail.com>
477
478 * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE,
479 PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
480 PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and
481 --{no-,}plt-align.
482 (plt_thread_safe, plt_stub_align): New vars.
483 (gld${EMULATION_NAME}_after_allocation): Pass them to
484 ppc64_elf_size_stubs. Align stub sections according to plt_stub_align.
485 * ld.texinfo: Document new command line options, and an old
486 undocumented option.
487
488 2012-01-09 Roland McGrath <mcgrathr@google.com>
489
490 * configure.in: Use AM_ZLIB.
491 * configure: Regenerated.
492
493 For older changes see ChangeLog-2011
494 \f
495 Local Variables:
496 mode: change-log
497 left-margin: 8
498 fill-column: 74
499 version-control: never
500 End:
This page took 0.03999 seconds and 5 git commands to generate.