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