* ld.texinfo (SEGMENT_START): Rephrase to indicate that a -T
[binutils-gdb.git] / ld / ChangeLog
1 2013-06-07 Nick Clifton <nickc@redhat.com>
2
3 * ld.texinfo (SEGMENT_START): Rephrase to indicate that a -T
4 option must appear before the SEGMENT_START is encountered in
5 order for the default value to be overridden.
6
7 2013-05-03 Alan Modra <amodra@gmail.com>
8
9 PR ld/15365
10 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
11 Restrict __ehdr_start's export class to no less than STV_HIDDEN.
12
13 2013-05-03 Alan Modra <amodra@gmail.com>
14
15 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
16 Only call lang_for_each_statement if an ELF hash table is used.
17
18 2013-05-02 Nick Clifton <nickc@redhat.com>
19
20 * Makefile.am: Add emsp430X.c
21 * Makefine.in: Regenerate.
22 * configure.tgt (msp430): Add msp430X emulation.
23 * ldmain.c (multiple_definition): Only disable relaxation if it
24 was enabled by the user.
25 * ldmain.h (RELAXATION_ENABLED_BY_USER): New macro.
26 * emulparams/msp430all.sh: Add support for MSP430X.
27 * emultempl/generic.em: (before_parse): Enable relaxation for the
28 MSP430.
29 * scripttempl/msp430.sc: Reorganize sections. Add .rodata
30 section.
31 * scripttempl/msp430_3.sc: Likewise.
32 * NEWS: Mention support for MSP430X.
33
34 2013-05-01 Maciej W. Rozycki <macro@codesourcery.com>
35
36 * configure.tgt: Replace alpha*-*-linuxecoff* pattern with
37 alpha*-*-linux*ecoff*. Update the `sed' pattern used to convert
38 from alpha*-*-linux-* to alpha*-*-linux*ecoff*.
39
40 2013-05-01 Maciej W. Rozycki <macro@codesourcery.com>
41
42 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
43 Use is_elf_hash_table rather than a handcoded condition.
44
45 2013-04-30 Nick Clifton <nickc@redhat.com>
46
47 * ld.texinfo (SORT_BY_ALIGNMENT): Fix and clarify typo - sections
48 are sorted by descending order of alignment.
49
50 2013-04-29 Nick Clifton <nickc@redhat.com>
51
52 * scripttempl/DWARF.sc: Add support for .debug_line.* and
53 .debug_line_end.
54
55 2013-04-29 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
56
57 * emultempl/pe.em [cygwin]: Do not merge rdata with v2
58 psuedo-relocs.
59
60 2013-04-28 Thomas Schwinge <thomas@codesourcery.com>
61
62 * scripttempl/armbpabi.sc: Replace "source" usage with ".".
63 * scripttempl/avr.sc: Likewise.
64 * scripttempl/elf.sc: Likewise.
65 * scripttempl/elf32cr16.sc: Likewise.
66 * scripttempl/elf32crx.sc: Likewise.
67 * scripttempl/elf32msp430.sc: Likewise.
68 * scripttempl/elf32msp430_3.sc: Likewise.
69 * scripttempl/elf32sh-symbian.sc: Likewise.
70 * scripttempl/elf64hppa.sc: Likewise.
71 * scripttempl/elf_chaos.sc: Likewise.
72 * scripttempl/elfd10v.sc: Likewise.
73 * scripttempl/elfd30v.sc: Likewise.
74 * scripttempl/elfi370.sc: Likewise.
75 * scripttempl/elfm68hc11.sc: Likewise.
76 * scripttempl/elfm68hc12.sc: Likewise.
77 * scripttempl/elfxgate.sc: Likewise.
78 * scripttempl/elfxtensa.sc: Likewise.
79 * scripttempl/epiphany_4x4.sc: Likewise.
80 * scripttempl/i386beos.sc: Likewise.
81 * scripttempl/i386go32.sc: Likewise.
82 * scripttempl/ia64vms.sc: Likewise.
83 * scripttempl/ip2k.sc: Likewise.
84 * scripttempl/iq2000.sc: Likewise.
85 * scripttempl/mep.sc: Likewise.
86 * scripttempl/mmo.sc: Likewise.
87 * scripttempl/v850.sc: Likewise.
88 * scripttempl/v850_rh850.sc: Likewise.
89 * scripttempl/xstormy16.sc: Likewise.
90
91 2013-04-26 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
92
93 * scripttempl/avr.sc: Add ALIGN directive after *(.progmem*).
94
95 2013-04-26 Alan Modra <amodra@gmail.com>
96
97 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Test
98 unresolved_syms_in_shared_libs rather than !executable to
99 determine whether to load DT_NEEDED libraries.
100
101 2013-04-25 Alan Modra <amodra@gmail.com>
102
103 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32lppclinux.c.
104 (eelf32lppclinux.c): New rule.
105 * Makefile.in: Regenerate.
106 * configure.tgt: Merge powerpc-linux and other powerpc-elf targets
107 with corresponding little-endian targets.
108 * emulparams/elf32lppc.sh: Update comment.
109 * emulparams/elf32lppclinux.sh: New.
110
111 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
112
113 * configure.tgt (targ_extra_emuls): Adds elf32_x86_64 for
114 x86_64-*-elf*.
115 (targ_extra_libpath): Likewise.
116 (tdir_elf_i386): Replace x86_64 with i386 for x86_64-*-elf*.
117
118 2013-04-24 Yufeng Zhang <yufeng.zhang@arm.com>
119
120 * emulparams/aarch64elf.sh: Define ELFSIZE=64.
121 * emulparams/aarch64linux.sh: Ditto.
122 * emultempl/aarch64elf.em (aarch64_elf_before_allocation):
123 Replace elf64 with elf${ELFSIZE}.
124 (elf64_aarch64_add_stub_section): Likewise.
125 (build_section_lists): Likewise.
126 (gld${EMULATION_NAME}_after_allocation): Likewise.
127 (gld${EMULATION_NAME}_finish): Likewise.
128 (aarch64_elf_create_output_section_statements): Likewise.
129
130 2013-04-24 Nick Clifton <nickc@redhat.com>
131
132 PR ld/15389
133 * scripttempl/avr.sc: Add .note.gnu.build-id section.
134
135 2013-04-22 Alan Modra <amodra@gmail.com>
136
137 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
138 Check return from ppc64_elf_init_stub_bfd.
139
140 2013-04-15 Nick Clifton <nickc@redhat.com>
141
142 * Makefile.am (ELF_DEPS): Add a dependency upon
143 scripttempl/DWARF.sc.
144 (ELF_GEN_DEPS): Likewise.
145 (emmo.c): Likewise.
146 * Makefile.in: Regenerate.
147
148 * scripttempl/armbpabi.sc: Replace DWARF sections with an
149 inclusion of DWARF.sc.
150 * scripttempl/avr.sc: Likewise.
151 * scripttempl/elf.sc: Likewise.
152 * scripttempl/elf32cr16.sc: Likewise.
153 * scripttempl/elf32crx.sc: Likewise.
154 * scripttempl/elf32msp430.sc: Likewise.
155 * scripttempl/elf32msp430_3.sc: Likewise.
156 * scripttempl/elf32sh-symbian.sc: Likewise.
157 * scripttempl/elf64hppa.sc: Likewise.
158 * scripttempl/elf_chaos.sc: Likewise.
159 * scripttempl/elfd10v.sc: Likewise.
160 * scripttempl/elfd30v.sc: Likewise.
161 * scripttempl/elfi370.sc: Likewise.
162 * scripttempl/elfm68hc11.sc: Likewise.
163 * scripttempl/elfm68hc12.sc: Likewise.
164 * scripttempl/elfxgate.sc: Likewise.
165 * scripttempl/elfxtensa.sc: Likewise.
166 * scripttempl/epiphany_4x4.sc: Likewise.
167 * scripttempl/i386beos.sc: Likewise.
168 * scripttempl/i386go32.sc: Likewise.
169 * scripttempl/ia64vms.sc: Likewise.
170 * scripttempl/ip2k.sc: Likewise.
171 * scripttempl/iq2000.sc: Likewise.
172 * scripttempl/mep.sc: Likewise.
173 * scripttempl/mmo.sc: Likewise.
174 * scripttempl/v850.sc: Likewise.
175 * scripttempl/v850_rh850.sc: Likewise.
176 * scripttempl/xstormy16.sc: Likewise.
177 * scripttempl/DWARF.sc: New.
178
179 2013-04-04 Alan Modra <amodra@gmail.com>
180
181 * ldlang.c (load_symbols): Report "error adding symbols" on
182 bfd_link_add_symbols failure.
183 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
184 * emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Likewise.
185 (gld${EMULATION_NAME}_try_needed): Likewise.
186
187 2013-03-27 Georg-Johann Lay <gjl@gcc.gnu.org>
188
189 PR ld/13812
190 * scripttempl/avr.sc: Place trampolines before .progmem section.
191
192 2013-03-25 Kai Tietz <ktietz@redhat.com>
193
194 * ld.texinfo (--disable-runtime-pseudo-reloc): Adjust default.
195
196 2013-03-21 Michael Schewe <michael.schewe@gmx.net>
197
198 * ld.texinfo (H8/300): Add description of relaxation of
199 mov @(disp:32,ERx) to mov @(disp:16,ERx).
200
201 2013-03-21 Kai Tietz <ktietz@redhat.com>
202
203 * pe-dll.c (process_def_file_and_drectve): Don't handle VC
204 generated C++-symbols as stdcall/fastcall.
205
206 2013-03-18 Alan Modra <amodra@gmail.com>
207
208 * ld.texinfo (--as-needed): Update.
209
210 2013-03-14 Jakub Jelinek <jakub@redhat.com>
211
212 * emulparams/aarch64linux.sh (LIBPATH_SUFFIX): Set to 64 for
213 aarch64linux* emulations.
214
215 2013-03-07 Alan Modra <amodra@gmail.com>
216
217 * ldfile.c (ldfile_open_command_file_1): Return after einfo
218 to avoid warning.
219
220 2013-03-05 Corinna Vinschen <vinschen@redhat.com>
221
222 * configure.host: Add x86_64-*-cygwin* as valid host.
223 * configure.tgt: Add x86_64-*-cygwin* as valid target.
224 * emultempl/pep.em: Handle different requirements for Cygwin in terms
225 of start addresses for executables and DLLs, based on memory model in
226 http://cygwin.com/ml/cygwin-developers/2013-02/msg00027.html
227
228 2013-03-05 Alan Modra <amodra@gmail.com>
229
230 PR ld/15222
231 * ldlang.c (lang_size_sections_1): When given an lma_region align
232 LMA as per VMA only if lma_region is the same as region.
233
234 2013-02-27 Nick Clifton <nickc@redhat.com>
235
236 * scripttempl/elf32msp430.sc: Add placement of .data.* sections.
237 Add alignment of .bss section.
238 * scripttempl/elf32msp430_3.sc: Likewise.
239
240 2013-02-26 Nick Clifton <nickc@redhat.com>
241
242 PR ld/15188
243 * ld.texinfo: Fix typos.
244
245 2013-02-21 Alan Modra <amodra@gmail.com>
246
247 * scripttempl/elf.sc (.init_array, .fini_array): Don't sort all
248 .init_array/.fini_array input sections before .ctors/.dtors input
249 sections.
250 (CTORS_IN_INIT_ARRAY, DTORS_IN_INIT_ARRAY): Adjust to suit.
251
252 2013-02-21 Alan Modra <amodra@gmail.com>
253
254 * emultempl/elf32.em (write_build_id, setup_build_id): Adjust
255 for elf_tdata changes.
256
257 2013-02-21 Alan Modra <amodra@gmail.com>
258
259 * emultempl/elf-generic.em: Use newly defined elf_obj_tdata
260 accessor macros.
261
262 2013-02-20 Alan Modra <amodra@gmail.com>
263
264 * Makefile.am: Use $(ELF_DEPS) on a number of eelf*.c rules.
265 * Makefile.in: Regenerate.
266
267 2013-02-19 Sandra Loosemore <sandra@codesourcery.com>
268
269 PR ld/15146
270 * plugin.c (plugin_notice): Add null check before dereferencing
271 pointer.
272
273 2013-02-19 Alan Modra <amodra@gmail.com>
274
275 * emultempl/elf32.em (emit_note_gnu_build_id): New static var.
276 Replace all info->emit_note_gnu_build_id refs.
277 (id_note_section_size): Rename from
278 gld${EMULATION_NAME}_id_note_section_size.
279 (struct build_id_info): Delete.
280 (write_build_id): Rename from
281 gld${EMULATION_NAME}_write_build_id_section.
282 Update elf_tdata usage. Style, formatting.
283 (setup_build_id): New function.
284 (gld${EMULATION_NAME}_after_open): Use setup_build_id.
285
286 2013-02-16 H.J. Lu <hongjiu.lu@intel.com>
287
288 PR ld/15146
289 * plugin.c (plugin_notice): Replace the undefined dummy bfd with
290 the real one.
291
292 2013-02-16 H.J. Lu <hongjiu.lu@intel.com>
293
294 PR ld/15141
295 * plugin.c (plugin_notice): Also trace symbol from the IR bfd.
296
297 2013-02-15 Kai Tietz <ktietz@redhat.com>
298
299 * scripttempl/pep.sc (.xdata): Merge .xdata* into .xdata section.
300 (.pdata): Merge .pdata* into .pdata section.
301
302 2013-02-11 Alan Modra <amodra@gmail.com>
303
304 * ldlang.c (get_init_priority): Comment typo.
305 (lang_finish): Free link_info.hash and lang_definedness_table.
306 (lang_end): Delete lang_definedness_table comment.
307
308 2013-02-11 Alan Modra <amodra@gmail.com>
309
310 PR ld/15130
311 * ld.texinfo (-rpath-link): Typo fix.
312
313 2013-02-08 Markos Chandras <markos.chandras@imgtec.com>
314
315 * emultempl/metagelf.em (build_section_lists): Use sec_info_type
316 rather than userdata->flags.just_syms.
317
318 2013-02-06 Sandra Loosemore <sandra@codesourcery.com>
319 Andrew Jenner <andrew@codesourcery.com>
320
321 Based on patches from Altera Corporation.
322
323 * Makefile.am (enios2elf.c): New rule.
324 * Makefile.in: Regenerated.
325 * configure.tgt: Add case for nios2*-*-*.
326 * emulparams/nios2elf.sh: New file.
327 * NEWS: Note Altera Nios II support.
328
329 2013-02-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
330
331 * emultempl/avrelf.em (avr_elf_before_parse): New function.
332 (LDEMUL_BEFORE_PARSE): Define.
333
334 2013-02-06 Alan Modra <amodra@gmail.com>
335
336 PR ld/15096
337 * emultempl/elf32.em: Revert 2013-02-04, 2013-01-22 and 2013-01-21.
338 * emultempl/alphaelf.em: Revert 2013-02-04.
339 * emultempl/cr16elf.em: Likewise.
340 * emultempl/crxelf.em: Likewise.
341 * emultempl/hppaelf.em: Likewise.
342 * emultempl/ia64elf.em: Likewise.
343 * emultempl/mipself.em: Likewise.
344 * NEWS: Revert 2013-01-21.
345
346 2013-02-04 H.J. Lu <hongjiu.lu@intel.com>
347
348 PR ld/15096
349 * emultempl/alphaelf.em (alpha_after_parse): Call
350 gld${EMULATION_NAME}_after_parse instead of after_parse_default.
351 * emultempl/cr16elf.em (cr16elf_after_parse): Likewise.
352 * emultempl/crxelf.em (crxelf_after_parse): Likewise.
353 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
354 * emultempl/mipself.em (mips_after_parse): Likewise.
355
356 * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Renamed
357 to ...
358 (gld_${EMULATION_NAME}_after_parse): This. Call
359 gld${EMULATION_NAME}_after_parse instead of after_parse_default.
360 (LDEMUL_AFTER_PARSE): Set to gld_${EMULATION_NAME}_after_parse.
361
362 * emultempl/elf32.em (new_dtags_set): New variable.
363 (gld${EMULATION_NAME}_before_parse): Don't set link_info.new_dtags
364 here.
365 (gld${EMULATION_NAME}_after_parse): New function.
366 (ld_${EMULATION_NAME}_emulation): Replace after_parse_default'
367 with gld${EMULATION_NAME}_after_parse.
368 (gld${EMULATION_NAME}_handle_option): Set new_dtags_set to TRUE
369 when setting link_info.new_dtags.
370
371 2013-01-25 Kai Tietz <ktietz@redhat.com>
372
373 * deffilep.y (def_image_name): Adjust type of base-address
374 argument.
375 (%union): Add new type bfd_vma as vma.
376 (VMA): New rule.
377 (opt_base): Use VMA instead of NUMBER rule to evaluate value.
378 (def_file_print): Use bfd's fprintf_vma to output base-address.
379
380 2013-01-24 Nick Clifton <nickc@redhat.com>
381
382 * NEWS: Mention support for V850E3V5 architecture.
383
384 2013-01-23 Martin Koegler <martin.koegler@chello.at>
385
386 PR ld/15041
387 * scripttempl/pep.sc (.pdata): Only accept .pdata sections.
388 (.xdata): Similarly.
389 (.debug_frame): Similarly.
390
391 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
392
393 PR ld/15037
394 * scripttempl/avr.sc (.eeprom): Keep it.
395
396 2013-01-23 Leif Ekblad <leif@rdos.net>
397
398 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64rdos.c.
399 (eelf64rdos.c): New rule.
400 * emulparams/elf64rdos.sh: New file.
401 * configure.tgt (x86_64-*-rdos*): Use above.
402 * Makefile.in: Regenerate.
403
404 2013-01-22 Roland McGrath <mcgrathr@google.com>
405
406 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
407 new_dtags to TRUE for *-*-nacl* targets.
408
409 2013-01-21 Mike Frysinger <vapier@gentoo.org>
410
411 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
412 link_info.new_dtags to TRUE for linux/gnu targets.
413 * NEWS: Mention new dtags default.
414
415 2013-01-19 H.J. Lu <hongjiu.lu@intel.com>
416
417 * Makefile.am (HOSTING_SCRT0): New.
418
419 * configure.host (HOSTING_SCRT0): New. Used for PIE.
420
421 * configure.in (HOSTING_SCRT0): New AC_SUBST.
422
423 * Makefile.in: Regenerated.
424 * configure: Likewise.
425
426 2013-01-18 Mike Frysinger <vapier@gentoo.org>
427
428 * NEWS: Mention change in behavior with --enable-new-dtags.
429 * ld.texinfo (Options): Clarify --enable-new-dtags behavior.
430
431 2013-01-14 Leif Ekblad <leif@rdos.net>
432 Alan Modra <amodra@gmail.com>
433
434 * ld.texinfo (-Tldata-segment): Describe.
435 * ldlex.h (OPTION_TLDATA_SEGMENT): New enum value.
436 * lexsup.c (ld_options): Add -Tldata-segment.
437 (parse_args): Handle OPTION_TLDATA_SEGMENT.
438 * scripttempl/elf.sc: Support LARGE_DATA_ADDR.
439
440 2013-01-10 H.J. Lu <hongjiu.lu@intel.com>
441
442 * deffilep.y: Remove trailing white spaces.
443 * elf-hints-local.h: Likewise.
444 * ldexp.c: Likewise.
445 * ldlang.h: Likewise.
446 * ldmisc.c: Likewise.
447 * ldwrite.c: Likewise.
448 * pe-dll.c: Likewise.
449 * emulparams/criself.sh: Likewise.
450 * emulparams/crislinux.sh: Likewise.
451 * emulparams/elf32_tic6x_le.sh: Likewise.
452 * emulparams/elf32bmipn32-defs.sh: Likewise.
453 * emulparams/elf32mb_linux.sh: Likewise.
454 * emulparams/elf32mep.sh: Likewise.
455 * emulparams/elf32microblaze.sh: Likewise.
456 * emulparams/elf32ppc.sh: Likewise.
457 * emulparams/elf64_s390.sh: Likewise.
458 * emulparams/elf64alpha.sh: Likewise.
459 * emulparams/elf_s390.sh: Likewise.
460 * emulparams/elf_x86_64.sh: Likewise.
461 * emulparams/tic80coff.sh: Likewise.
462 * emultempl/aix.em: Likewise.
463 * emultempl/avrelf.em: Likewise.
464 * emultempl/cr16elf.em: Likewise.
465 * emultempl/pe.em: Likewise.
466 * emultempl/pep.em: Likewise.
467 * emultempl/spuelf.em: Likewise.
468 * emultempl/tic6xdsbt.em: Likewise.
469
470 2013-01-10 Will Newton <will.newton@imgtec.com>
471
472 * Makefile.am: Add Meta.
473 * Makefile.in: Regenerate.
474 * configure.tgt: Add Meta.
475 * emulparams/elf32metag.sh: New file.
476 * emultempl/metagelf.em: New file.
477
478 2013-01-09 Alan Modra <amodra@gmail.com>
479
480 * emulparams/elf_x86_64.sh (LARGE_BSS_AFTER_BSS): Define.
481 * emulparams/elf32_x86_64.sh: Likewise.
482 * emulparams/elf_k1om.sh: Likewise.
483 * emulparams/elf_l1om.sh: Likewise.
484 * scripttempl/elf.sc (LARGE_BSS): Define rather than appending to
485 OTHER_BSS_SECTIONS. Substitute in script.
486
487 2013-01-08 Leif Ekblad <leif@rdos.net>
488
489 * scripttempl/elf.sc (RODATA_ADDR): Typo fix.
490
491 2013-01-08 Alan Modra <amodra@gmail.com>
492
493 * emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): Replace
494 "name" param with a bfd_link_needed_list pointer. Update caller.
495 (gld${EMULATION_NAME}_check_ld_elf_hints): Likewise.
496
497 2013-01-08 Alan Modra <amodra@gmail.com>
498
499 * Makefile.am (ALL_EMULATION_SOURCES): Correct eavrxmega entries.
500 * Makefile.in: Regenerate.
501
502 2013-01-07 H.J. Lu <hongjiu.lu@intel.com>
503
504 * lexsup.c (ld_options): Add fuse-ld= for GCC linker option
505 compatibility.
506
507 2013-01-07 Patrice Dumas <pertusus@free.fr>
508
509 * ld.texinfo: Replace @ with @@ when it is part of the text.
510 Correct ordering of M68HC11 entry.
511
512 2013-01-04 Juergen Urban <JuergenUrban@gmx.de>
513
514 * configure.tgt: Support ELF files for Sony Playstation 2 (for
515 ps2dev and ps2sdk).
516 * emulparams/elf32lr5900n32.sh: Create linker script for Sony
517 Playstation 2 ELF files using MIPS ABI n32.
518 * emulparams/elf32lr5900.sh: Create linker script for Sony
519 Playstation 2 ELF files using MIPS ABI o32.
520 * Makefile.am: Add linker scripts for Sony Playstation 2 ELF
521 files.
522
523 2013-01-02 H.J. Lu <hongjiu.lu@intel.com>
524
525 * ldver.c (ldversion): Update copyright year to 2013.
526
527 For older changes see ChangeLog-2012
528 \f
529 Copyright (C) 2013 Free Software Foundation, Inc.
530
531 Copying and distribution of this file, with or without modification,
532 are permitted in any medium without royalty provided the copyright
533 notice and this notice are preserved.
534
535 Local Variables:
536 mode: change-log
537 left-margin: 8
538 fill-column: 74
539 version-control: never
540 End: