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