bfd/
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2012-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2
3 * ldexp.h (etree_union): Add defsym member to the assign member
4 structure.
5 (exp_assign): Add hidden argument to prototype.
6 * ldexp.c (exp_fold_tree_1): Use the defsym member to handle
7 --defsym symbols.
8 (exp_assop): Add defsym argument, initialize the defsym member
9 of the assign structure.
10 (exp_assign): Handle hidden symbols.
11 (exp_defsym): Update to use the defsym argument to exp_assop.
12 (exp_provide): Update to handle the defsym argument to exp_assop.
13 * ldlex.l (HIDDEN): New token.
14 * ldgram.y (HIDDEN): Likewise.
15 (assignment, section): Update calls to exp_assign.
16 * ldctor.c (ldctor_build_sets): Likewise.
17 * mri.c (mri_format): Likewise.
18 * ldlang.c (lang_insert_orphan, lang_leave_overlay): Likewise.
19 (open_input_bfds): Remove --defsym symbols special case.
20 * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Update
21 call to exp_assign.
22 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
23 * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
24 * emultempl/spuelf.em (spu_place_special_section): Likewise.
25 * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets):
26 Likewise.
27 * ld.texinfo (Assigning Values to Symbols): Add HIDDEN.
28 (HIDDEN): New subsection.
29
30 2012-07-31 H.J. Lu <hongjiu.lu@intel.com>
31
32 PR ld/14156
33 * ldlang.c (wild_sort): Properly handle by_none.
34
35 * scripttempl/elf.sc: Add SORT_NONE to .init and .fini sections.
36 * scripttempl/elf32msp430.sc: Likewise.
37 * scripttempl/elf32msp430_3.sc: Likewise.
38 * scripttempl/elfd10v.sc: Likewise.
39 * scripttempl/elfd30v.sc: Likewise.
40 * scripttempl/elfxtensa.sc: Likewise.
41
42 2012-07-30 Nick Clifton <nickc@redhat.com>
43
44 * po/ld.pot: Updated template.
45 * po/bg.po: Updated Bulgarian translation.
46 * po/es.po: Updated Spanish translation.
47 * po/fi.po: Updated Finnish translation.
48
49 2012-07-27 Mike Frysinger <vapier@gentoo.org>
50
51 * configure.in (BFD_VERSION): Run bfd/configure --version and
52 parse the output of that.
53 * configure: Regenerate.
54
55 2012-07-27 Tristan Gingold <gingold@adacore.com>
56
57 * NEWS: Add marker for 2.23.
58
59 2012-07-24 Jan Waclawek <konfera@efton.sk>
60
61 PR ld/14058
62 * emultempl/avrelf.em (avr_elf_after_allocation): Call
63 elf32_avr_size_stubs with is_prealloc_run as TRUE.
64
65 2012-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
66
67 * emulparams/elf_s390.sh (IREL_IN_PLT): Define.
68 * emulparams/elf64_s390.sh (IREL_IN_PLT): Define.
69
70 2012-07-13 Nick Clifton <nickc@redhat.com>
71
72 PR ld/14357
73 * ldmain.c (trace_file_tries): Rename to 'verbose'.
74 * ldfile.c: Likewise.
75 * ldlang.c: Likewise.
76 * ldmain.h: Likewise.
77 * lexsup.c: Likewise.
78 * emultempl/elf32.em: Likewise.
79 * emultemp/spuelf.em: Likewise.
80 * pe-dll.c (pe_dll_generate_implib): Only print creation message
81 in verbose mode.
82
83 2012-07-10 H.J. Lu <hongjiu.lu@intel.com>
84
85 PR ld/14156
86 * NEWS: Mention SORT_NONE.
87
88 * ld.h (sort_type): Add by_none.
89
90 * ld.texinfo: Document SORT_NONE.
91
92 * ldgram.y: Handle SORT_NONE.
93
94 * ldlang.c (update_wild_statements): Handle by_none. Don't
95 sort .init/.fini sections.
96
97 * ldlex.l: Add SORT_NONE.
98
99 2012-07-02 H.J. Lu <hongjiu.lu@intel.com>
100
101 * ld.texinfo: Replace __end_SECNAME with __stop_SECNAME.
102
103 2012-06-29 Nick Clifton <nickc@redhat.com>
104
105 * scripttempl/alphavms.sc: Add .debug_macro section.
106 * scripttempl/elf.sc: Likewise.
107 * scripttempl/elf64hppa.sc: Likewise.
108 * scripttempl/elf_chaos.sc: Likewise.
109 * scripttempl/elfxtensa.sc: Likewise.
110 * scripttempl/ia64vms.sc: Likewise.
111
112 * scripttempl/armbpabi.sc: Add .debug_pubtypes, .debug_ranges and
113 .debug_macro sections.
114 * scripttempl/avr.sc: Likewise.
115 * scripttempl/elf32cr16.sc: Likewise.
116 * scripttempl/elf32crx.sc: Likewise.
117 * scripttempl/elf32msp430.sc: Likewise.
118 * scripttempl/elf32msp430_3.sc: Likewise.
119 * scripttempl/elf32sh-symbian.sc: Likewise.
120 * scripttempl/elfd30v.sc: Likewise.
121 * scripttempl/elfi370.sc: Likewise.
122 * scripttempl/elfm68hc11.sc: Likewise.
123 * scripttempl/elfm68hc12.sc: Likewise.
124 * scripttempl/elfxgate.sc: Likewise.
125 * scripttempl/i386beos.sc: Likewise.
126 * scripttempl/i386go32.sc: Likewise.
127 * scripttempl/ip2k.sc: Likewise.
128 * scripttempl/iq2000.sc: Likewise.
129 * scripttempl/mep.sc: Likewise.
130 * scripttempl/mmo.sc: Likewise.
131 * scripttempl/v850.sc: Likewise.
132 * scripttempl/xstormy16.sc: Likewise.
133
134 2012-06-28 H.J. Lu <hongjiu.lu@intel.com>
135
136 * ldlang.c (update_wild_statements): Remove redundant statement.
137
138 2012-06-25 Alan Modra <amodra@gmail.com>
139
140 * ldlang.c (load_symbols): Close file and set flags.loaded
141 after parsing script file.
142 (open_input_bfds): Don't segv on closed script.
143
144 2012-06-24 H.J. Lu <hongjiu.lu@intel.com>
145
146 * configure.tgt: Enable elf_k1om for x86_64-*-linux-gnux32.
147 Remove x32 in tdir_i386linux and tdir_elf_i386.
148
149 2012-06-22 Roland McGrath <mcgrathr@google.com>
150
151 * NEWS: Mention __ehdr_start.
152
153 2012-06-21 Alan Modra <amodra@gmail.com>
154
155 * ldlang.c (lang_insert_orphan): Don't make __start_<sec> symbol
156 absolute, and remove unnecessary alignment.
157
158 2012-06-16 Alan Modra <amodra@gmail.com>
159
160 * ldlang.h (lang_output_section_statement_type): Add after_end field.
161 (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
162 (section_for_dot): Declare.
163 * ldlang.c (lang_size_sections_1): Correct comment.
164 (current_section): Move earlier.
165 (current_assign, prefer_next_section): New static vars.
166 (lang_do_assignments_1): Add found_end param. Detect _end
167 assignment to set found_end. Set os->after_end. Set above statics.
168 (lang_do_assignments): Adjust lang_do_assignments_1 call. Init
169 vars.
170 (section_for_dot): New function.
171 (lang_set_startof): Don't make an absolute symbol.
172 (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
173 * ldexp.c (new_rel_from_abs): Use section_for_dot.
174 * emultempl/lnk960.em (symbol_at_beginning_of): New function.
175 (symbol_at_end_of): Likewise.
176 (lnk960_after_allocation): Use them.
177 * scripttempl/elf.sc: Precede OTHER_GOT_SYMBOLS with . = .; and
178 likewise before __bss_start.
179
180 2012-06-14 H.J. Lu <hongjiu.lu@intel.com>
181
182 * plugin.c (set_tv_header): Handle link_info.pie.
183
184 2012-06-11 Alan Modra <amodra@gmail.com>
185
186 PR ld/14215
187 * ldexp.c (fold_name <SIZEOF, ALIGNOF>): Allow forward section
188 references.
189 * emulparams/elf32_x86_64.sh (SEPARATE_GOTPLT): Depend on size of
190 .got.plt.
191 * emulparams/elf32mb_linux.sh (SEPARATE_GOTPLT): Likewise.
192 * emulparams/elf32tilegx.sh (SEPARATE_GOTPLT): Likewise.
193 * emulparams/elf32tilepro.sh (SEPARATE_GOTPLT): Likewise.
194 * emulparams/elf64tilegx.sh (SEPARATE_GOTPLT): Likewise.
195 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Likewise.
196 * emulparams/elf_k1om.sh (SEPARATE_GOTPLT): Likewise.
197 * emulparams/elf_l1om.sh (SEPARATE_GOTPLT): Likewise.
198 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Likewise.
199
200 2012-06-07 Georg-Johann Lay <avr@gjlay.de>
201
202 PR 13697
203 * scripttempl/avr.sc (.data): Keep it.
204
205 2012-06-02 Andreas Schwab <schwab@linux-m68k.org>
206
207 * Makefile.am (TEXINFO_TEX): Remove $(top_srcdir) prefix.
208 * Makefile.in: Regenerate.
209
210 2012-05-30 Alan Modra <amodra@gmail.com>
211
212 * ldlang.h (lang_output_section_statement_type): Rename
213 "section_relative_symbol" field to "update_dot".
214 * ldlang.c: Update all uses.
215 (strip_excluded_output_sections): Don't test update_dot_tree here..
216 (lang_leave_overlay): ..set update_dot here.
217
218 2012-05-26 Alan Modra <amodra@gmail.com>
219
220 * ldlex.h (enum option_values): Move from..
221 * lexsup.c: ..here.
222 * emultempl/ppc32elf.em: Include ldlex.h.
223 (PARSE_AND_LIST_ARGS_CASES): Disable optimisations when
224 --traditional-format.
225 * emultempl/ppc64elf.em: Likewise.
226
227 2012-05-25 Alan Modra <amodra@gmail.com>
228
229 PR ld/13909
230 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Handle
231 multiple .eh_frame sections attached to bfd.
232
233 2012-05-23 Cary Coutant <ccoutant@google.com>
234
235 * scripttempl/armbpabi.sc: Match .data.rel.ro.* sections more
236 carefully. Fix typo where .rela.data.rel.ro matches
237 .rel.data.rel.ro.
238 * scripttempl/mep.sc: Likewise.
239 * scripttempl/elf.sc: Match .data.rel.ro.* sections more carefully.
240 * scripttempl/elf64hppa.sc: Likewise.
241 * scripttempl/elfxtensa.sc: Likewise.
242
243 2012-05-17 Daniel Richard G. <skunk@iskunk.org>
244 Nick Clifton <nickc@redhat.com>
245
246 PR 14072
247 * configure.in: Add check that sysdep.h has been included before
248 any system header files.
249 * configure: Regenerate.
250 * config.in: Regenerate.
251 * sysdep.h: Generate an error if included before config.h.
252
253 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
254
255 * emultempl/m68hc1xelf.em (hook_in_stub): Pass proper `bfd'
256 as the first argument for `bfd_get_section_name'.
257
258 2012-05-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
259
260 PR ld/14069
261 * emultempl/elf32.em: Include *-*-gnu* targets in ld.so.conf
262 support.
263
264 2012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
265
266 * NEWS: Mention the support for S12X processors.
267
268 2012-05-14 James Lemke <jwlemke@codesourcery.com>
269
270 * ldlang.c (walk_wild_consider_section): Don't copy section_flag_list.
271 Pass it to callback.
272 (walk_wild_section_general): Pass section_flag_list to callback.
273 (lang_add_section): Add sflag_list parm.
274 Move out logic to keep / omit a section & call bfd_lookup_section_flags.
275 (output_section_callback_fast): Add sflag_list parm.
276 Add new parm to lang_add_section calls.
277 (output_section_callback): Likewise.
278 (check_section_callback): Add sflag_list parm.
279 (lang_place_orphans): Add new parm to lang_add_section calls.
280 (gc_section_callback): Add sflag_list parm.
281 (find_relro_section_callback): Likewise.
282 * ldlang.h (callback_t): Add flag_info parm.
283 (lang_add_section): Add sflag_list parm.
284 * emultempl/armelf.em (elf32_arm_add_stub_section):
285 Add lang_add_section parm.
286 * emultempl/beos.em (gld*_place_orphan): Likewise.
287 * emultempl/elf32.em (gld*_place_orphan): Likewise.
288 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
289 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
290 * emultempl/mipself.em (mips_add_stub_section): Likewise.
291 * emultempl/mmo.em (mmo_place_orphan): Likewise.
292 * emultempl/pe.em (gld_*_place_orphan): Likewise.
293 * emultempl/pep.em (gld_*_place_orphan): Likewise.
294 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
295 * emultempl/spuelf.em (spu_place_special_section): Likewise.
296 * emultempl/vms.em (vms_place_orphan): Likewise.
297
298 2012-05-14 Catherine Moore <clm@codesourcery.com>
299
300 * NEWS: Mention PowerPC VLE port.
301
302 2012-05-11 Daniel Richard G. <skunk@iskunk.org>
303
304 PR binutils/14028
305 * configure.in: Invoke ACX_HEADER_STRING.
306 * configure: Regenerate.
307 * config.in: Regenerate.
308 * sysdep.h: If STRINGS_WITH_STRING is defined then include both
309 string.h and strings.h.
310
311 2012-05-08 Alan Modra <amodra@gmail.com>
312
313 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
314 LC and LANG environment vars.
315 * Makefile.in: Regenerate.
316
317 2012-05-07 Tristan Gingold <gingold@adacore.com>
318
319 * pe-dll.c (udef_table): Make it static.
320
321 2012-05-05 Alan Modra <amodra@gmail.com>
322
323 * pe-dll.c (process_def_file_and_drectve): Use bfd_und_section_ptr.
324 (generate_reloc): Use bfd_abs_section_ptr.
325
326 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
327
328 * configure.tgt: Support x86_64-*-linux-gnux32.
329
330 2012-05-03 Sean Keys <skeys@ipdatasys.com>
331
332 * Makefile.am (ALL_EMULATIONS): Added new emulation for XGATE
333 and XGATE (elf).
334 * Makefile.in: Rebuild.
335 * configure.tgt: Recognize XGATE.
336 * scripttempl/elfxgate.sc: New file, mostly cloned from m68hc12.
337 * emulparams/xgateelf: New emulation, mostly cloned from m68hc12.
338 * NEWS: Mention new support.
339
340 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
341
342 Make bfd asserts cause linker errors.
343 * ldmain.c (default_bfd_assert_handler): New variable.
344 (ld_bfd_assert_handler): New function.
345 (main): Call bfd_set_assert_handler.
346
347 2012-04-24 Alan Modra <amodra@gmail.com>
348
349 * ldlang.c (size_input_section): Use sec_info_type rather than
350 usrdata->flags.just_syms.
351 * ldwrite.c (build_link_order): Likewise.
352 * emultempl/hppaelf.em (build_section_lists): Likewise.
353 * emultempl/ppc64elf.em (build_toc_list): Likewise.
354 * emultempl/armelf.em (build_section_lists): Likewise.
355 (after_allocation): Update for renamed sec_info_type value.
356 * emultempl/tic6xdsbt.em: Likewise.
357
358 2012-04-12 Roland McGrath <mcgrathr@google.com>
359
360 * configure.tgt (arm*-*-nacl*, arm*b-*-nacl*): Handle them.
361 * emulparams/armelf_nacl.sh: New file.
362 * emulparams/armelfb_nacl.sh: New file.
363 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelf_nacl.c
364 and earmelfb_nacl.c here.
365 (earmelf_nacl.c, earmelfb_nacl.c): New targets.
366 * Makefile.in: Regenerated.
367
368 2012-04-11 Tristan Gingold <gingold@adacore.com>
369
370 * scripttempl/ia64vms.sc: New file.
371 * emultempl/vms.em (_before_parse): Support for ia64.
372 (elf64-ia64-vms): New fragment for ia64.
373 * emulparams/elf64_ia64_vms.sh: New file.
374 * configure.tgt (ia64-*-*vms*): Add.
375 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64_ia64_vms.c
376 (eelf64_ia64_vms.c): New rule.
377 * Makefile.in: Regenerate.
378
379 2012-04-06 Roland McGrath <mcgrathr@google.com>
380
381 * configure.in (AC_CHECK_HEADERS): Add locale.h.
382 * config.in: Regenerate.
383 * configure: Regenerate.
384
385 2012-04-05 Nick Clifton <nickc@redhat.com>
386
387 * configure.in (AC_CHECK_FUNCS): Add setlocale.
388 (AM_LC_MESSAGES): Add.
389 * aclocal.m4: Regenerate.
390 * config.in: Regenerate.
391 * configure: Regenerate.
392
393 2012-04-03 Roland McGrath <mcgrathr@google.com>
394
395 * configure.tgt (i[3-7]86-*-nacl*, x86_64-*-nacl*): Handle them.
396 * emulparams/elf_nacl.sh: New file.
397 * emulparams/elf_i386_nacl.sh: New file.
398 * emulparams/elf32_x86_64_nacl.sh: New file.
399 * emulparams/elf_x86_64_nacl.sh: New file.
400 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_i386_nacl.c here.
401 (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64_nacl.c and
402 eelf_x86_64_nacl.c here.
403 (eelf_i386_nacl.c, eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c):
404 New targets.
405 * Makefile.in: Regenerated.
406
407 * scripttempl/elf.sc: Handle SEPARATE_CODE cases.
408
409 2012-04-02 Mike Frysinger <vapier@gentoo.org>
410
411 * ldmisc.c (vfinfo): Assign new local str to fmt. Delete
412 putc call. If str and fmt are different, call fwrite on
413 the difference.
414
415 2012-03-30 Nick Clifton <nickc@redhat.com>
416
417 * po/vi.po: Updated Vietnamese translation.
418
419 2012-03-27 Roland McGrath <mcgrathr@google.com>
420
421 * configure.in: Set want64 on a 64-bit host regardless of
422 --enable-targets=all.
423 * configure: Regenerated.
424
425 2012-03-26 Tristan Gingold <gingold@adacore.com>
426
427 * lexsup.c (parse_args): Add a missing '\n'.
428
429 2012-03-25 Alan Modra <amodra@gmail.com>
430
431 * ldemul.c (before_allocation_default): Revert last change.
432 * ldlang.c (lang_add_section): Likewise.
433 (strip_excluded_output_sections): Don't strip output sections with
434 user input sections when emitrelocations, unless all are SEC_EXCLUDE.
435
436 2012-03-23 Alan Modra <amodra@gmail.com>
437
438 * ldemul.c (before_allocation_default): When emitrelocations,
439 don't strip sections..
440 * ldlang.c (lang_add_section): ..and don't set up map_head, map_tail.
441
442 2012-03-14 Kai Tietz <ktietz@redhat.com>
443 Pascal Obry <pascal@obry.net>
444
445 * pe-dll.c (found_sym): New static variable.
446 (undef_count): Likewise.
447 (key_value): New structure.
448 (undef_sort_cmp): Compare routine for qsort/bsearch.
449 (pe_find_cdecl_alias_match): Add new argument.
450 (pe_undef_alias_cdecl_match): Removed.
451 (pe_undef_count): New helper routine.
452 (pe_create_undef_table): Likewise.
453 (pe_process_import_defs): Use pe_create_undef_table and
454 new pe_undef_alias_cdecl_match function.
455
456 2012-03-14 Alan Modra <amodra@gmail.com>
457
458 PR ld/13839
459 * ldexp.c (fold_name): Ignore undefined symbols when assigning to
460 dot in mark phase.
461 (exp_fold_tree_1): Evaluate assignment to dot expressions even when
462 discarding result, for side effects. Fix typo in error message.
463
464 2012-03-08 Tristan Gingold <gingold@adacore.com>
465
466 * ldexp.c (exp_print_tree): Special case for SEGMENT_START.
467 (exp_print_token): Constify.
468
469 2012-03-08 Alan Modra <amodra@gmail.com>
470
471 PR ld/10340
472 * ldfile.c (is_sysrooted_pathname): Remove notsame param.
473 (ldfile_add_library_path): Don't set sysrooted flag.
474 (ldfile_open_file_search): Likewise, and don't copy them.
475 (try_open): Delete exten and code handling such. Add sysrooted
476 param and return whether path is in sysroot.
477 (ldfile_find_command_file): Delete extend param. Add sysrooted
478 param. Rename local var. Update try_open calls.
479 (ldfile_open_command_file_1): Pass sysrooted to lex_push_file.
480 * ldfile.h (search_dirs_type): Remove sysrooted field.
481 * ldlang.c (new_afile): Always set sysrooted from input_flags.
482 (load_symbols): Don't set input_flags.sysrooted.
483 * ldlang.h (struct lang_input_statement_flags): Revise sysrooted
484 comment.
485 * ldlex.h (lex_push_file): Update prototype.
486 * ldlex.l (sysrooted_stack): New array.
487 (EOF): Pop input_flags.sysrooted.
488 (lex_push_file): Add sysrooted param. Save and set
489 input_flags.sysrooted.
490
491 2012-03-06 Alan Modra <amodra@gmail.com>
492
493 * ldlang.h (struct lang_input_statement_flags): New, extract from..
494 (lang_input_statement_type): ..here. New field "flags".
495 (input_flags): Declare.
496 (missing_file): Delete.
497 * ldmain.h (whole_archive): Delete.
498 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
499 * ld.h (ld_config_type <dynamic_link>): Delete.
500 * ldmain.c (whole_archive): Delete.
501 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
502 * ldlang.c (missing_file, ldlang_sysrooted_script): Delete.
503 (input_flags): New variable. Replace all uses of config.dynamic_link,
504 missing_file, ldlang_sysrooted_script, whole_archive,
505 add_DT_NEEDED_for_regular and add_DT_NEEDED_for_dynamic with fields
506 from here.
507 * ldfile.c: Likewise.
508 * ldgram.y: Likewise.
509 * ldmain.c: Likewise.
510 * ldwrite.c: Likewise.
511 * lexsup.c: Likewise.
512 * plugin.c: Likewise.
513 * emultempl/aix.em: Likewise.
514 * emultempl/armelf.em: Likewise.
515 * emultempl/elf32.em: Likewise.
516 * emultempl/hppaelf.em: Likewise.
517 * emultempl/linux.em: Likewise.
518 * emultempl/pe.em: Likewise.
519 * emultempl/pep.em: Likewise.
520 * emultempl/ppc64elf.em: Likewise.
521 * emultempl/scoreelf.em: Likewise.
522 * emultempl/spuelf.em: Likewise.
523 * emultempl/sunos.em: Likewise.
524 * emultempl/vms.em: Likewise.
525 * ldlang.c (new_afile): Use memset to init zero fields.
526 (load_symbols): Simplify save and restore of flags around command
527 file processing.
528 * ldfile.c (is_sysrooted_pathname): Tidy.
529
530 2012-03-05 Hans-Peter Nilsson <hp@axis.com>
531
532 * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
533 (mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by
534 replacing trailing "-*" with "*".
535
536 2012-02-25 Walter Lee <walt@tilera.com>
537
538 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c.
539 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c.
540 (eelf32tilegx_be.c): Add rule to build this file.
541 (eelf64tilegx_be.c): Ditto.
542 * Makefile.in: Regenerate.
543 * configure.tgt (tilegx-*-*): Support big endian.
544 (tilegxbe-*-*): New.
545 * emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename.
546 (BIG_OUTPUT_FORMAT): Define.
547 (LITTLE_OUTPUT_FORMAT): Define.
548 * emulparams/elf32tilegx_be.sh: New.
549 * emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename.
550 (BIG_OUTPUT_FORMAT): Define.
551 (LITTLE_OUTPUT_FORMAT): Define.
552 * emulparams/elf64tilegx_be.sh: New.
553
554 2012-02-24 Kai Tietz <ktietz@redhat.com>
555
556 PR binutils/13710
557 * deffilep.y (keyword_as_name): Disable LIBRARY
558 keyword.
559
560 2012-02-22 Alan Modra <amodra@gmail.com>
561
562 PR ld/13683
563 * ldlang.c (lang_process): Rerun lang_do_assignments before
564 starting garbage collection.
565 * ldexp.c (fold_name): Generate a reloc for defined symbols
566 found without an associated output section during the mark phase.
567 (exp_fold_tree_1): Continue processing an expression, even if we
568 are unable to fold it, if we are in the first two evaluation
569 phases.
570 * ldexp.h (enum lang_phase_type): Add descriptions of the phases.
571
572 2012-02-19 Kai Tietz <ktietz@redhat.com>
573
574 * deffilep.y (cmp_import_elem): Sort first by module name.
575 * pe-dll.c (process_def_file_and_drectve): Free strings
576 from removed export-element.
577 (add_bfd_to_link): Optimize loop on import-elements and lower
578 allocated memory.
579 (pe_implied_import_dll): Pass NULL instead of 0 for pointer
580 argument.
581
582 2012-02-18 Hans-Peter Nilsson <hp@axis.com>
583
584 * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
585 temporary variable node used for NULL argument.
586
587 2012-02-18 Alan Modra <amodra@gmail.com>
588
589 PR ld/13343
590 * ld.h (parsing_defsym): Delete.
591 * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
592 (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
593 exp_get_abs_int): Add tree arg for %S in error messages. Don't
594 fudge lineno.
595 (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
596 type.filename from sub-tree.
597 (exp_trinop): Likewise, and use "cond" rather than "lhs".
598 * ldexp.h (node_type): Add filename field to struct.
599 * ldfile.c (ldfile_input_filename): Delete. Remove all refs.
600 * ldfile.h (ldfile_input_filename): Delete.
601 * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
602 %S in error messages.
603 * ldemul.c (syslib_default, hll_default): Likewise.
604 * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
605 lang_get_regions, lang_new_phdr): Likewise.
606 (lang_size_sections_1): Pass addr_tree for %S.
607 * ldlex.h (lex_redirect): Update prototype.
608 (ldlex_filename): Declare.
609 * ldlex.l (<EOF>): Don't set ldfile_input_filename.
610 (lex_redirect): Add fake_filename and count params. Push
611 fake_filename to file_name_stack and init lineno from count.
612 (ldlex_filename): New function.
613 (lex_warn_invalid): Use above.
614 * ldmain.c (main): Update lex_redirect call.
615 * ldmisc.c (vfinfo <%S>): Take file name and line number from
616 etree_type arg, or use current if arg is NULL.
617 * lexsup.c (parsing_defsym): Delete.
618 (parse_args <OPTION_DEFSYM>): Update lex_redirect call.
619
620 2012-02-13 Kai Tietz <ktietz@redhat.com>
621
622 * deffilep.y (find_export_in_list): Set is_indent for
623 first or last element, if identical.
624 (find_import_in_list): Likewise.
625
626 2012-02-11 Kai Tietz <ktietz@redhat.com>
627
628 * deffilep.y (%union): New type id_const.
629 (opt_name2): New rule.
630 (keyword_as_name): New rule.
631 (dot_name): Replaced by opt_name2 rule.
632 (opt_name): Adjust rule.
633 (opt_equal_name): Likewise.
634
635 2012-02-11 Pascal Obry <pascal@obry.net>
636
637 * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
638 table.
639 (process_def_file_and_drectve): Maintain sorting of exports table
640 after stripping leading @ signs.
641
642 2012-02-09 Alan Modra <amodra@gmail.com>
643
644 * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
645
646 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
647
648 PR ld/13616
649 * emulparams/elf32_x86_64.sh: Remove NOP.
650 * emulparams/elf_i386.sh: Likewise.
651 * emulparams/elf_i386_be.sh: Likewise.
652 * emulparams/elf_i386_ldso.sh: Likewise.
653 * emulparams/elf_i386_vxworks.sh: Likewise.
654 * emulparams/elf_k1om.sh: Likewise.
655 * emulparams/elf_l1om.sh: Likewise.
656 * emulparams/elf_x86_64.sh: Likewise.
657
658 * ldlang.c (zero_fill): Initialized to 0.
659
660 * ldwrite.c (build_link_order): Set data size to linker odrder
661 size when they are the same.
662
663 * scripttempl/elf.sc: Don't specify fill if NOP is undefined.
664
665 2012-01-17 Alan Modra <amodra@gmail.com>
666
667 * ldver.c (ldversion): Update copyright message year.
668
669 2012-01-15 Alan Modra <amodra@gmail.com>
670
671 PR ld/12758
672 * ldlang.c (lang_process): Don't reopen all files, just those
673 newly added by plugin.
674
675 2012-01-11 Alan Modra <amodra@gmail.com>
676
677 * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE,
678 PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
679 PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and
680 --{no-,}plt-align.
681 (plt_thread_safe, plt_stub_align): New vars.
682 (gld${EMULATION_NAME}_after_allocation): Pass them to
683 ppc64_elf_size_stubs. Align stub sections according to plt_stub_align.
684 * ld.texinfo: Document new command line options, and an old
685 undocumented option.
686
687 2012-01-09 Roland McGrath <mcgrathr@google.com>
688
689 * configure.in: Use AM_ZLIB.
690 * configure: Regenerated.
691
692 For older changes see ChangeLog-2011
693 \f
694 Local Variables:
695 mode: change-log
696 left-margin: 8
697 fill-column: 74
698 version-control: never
699 End:
This page took 0.043658 seconds and 4 git commands to generate.