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