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