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