Fix references to __ehdr_start when it cannot be defined
[binutils-gdb.git] / ld / ChangeLog
1 2013-11-19 Roland McGrath <mcgrathr@google.com>
2 Alan Modra <amodra@gmail.com>
3
4 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
5 Don't use bfd_elf_record_link_assignment to mark __ehdr_start
6 hidden. Instead, just do it directly here, and only if it was
7 referenced but not defined.
8
9 2013-11-18 Chung-Lin Tang <cltang@codesourcery.com>
10
11 * emulparams/nios2linux.sh: New emulation file.
12 * configure.tgt: Add nios2*-*-linux* emulation case.
13 * Makefile.am (enios2linux.c): New emulation entry.
14 * Makefile.in: Regenerate.
15
16 2013-10-14 Nick Clifton <nickc@redhat.com>
17
18 * emultempl/aix.em (_read_file): Close file at end of function.
19
20 2013-10-10 Roland McGrath <mcgrathr@google.com>
21
22 * ldmisc.c (vfinfo): Use Boolean ? "" : ":" in place of ":" + Boolean.
23 It silences some compilers' warnings and is much less bizarre to read.
24
25 2013-10-09 Roland McGrath <mcgrathr@google.com>
26
27 * emultempl/elf32.em (id_note_section_size): Use ATTRIBUTE_UNUSED
28 rather than a dummy assignment for unused parameter.
29 * plugin.c (get_input_file, release_input_file): Likewise.
30
31 2013-10-09 Nick Clifton <nickc@redhat.com>
32
33 PR ld/16028
34 * ldmain.c (add_keepsyms_file): Close file at end of function.
35
36 2013-10-03 Will Newton <will.newton@linaro.org>
37
38 * emulparams/aarch64elf.sh: Add IREL_IN_PLT.
39 * emulparams/aarch64elf32.sh: Likewise.
40
41 2013-09-30 Nick Clifton <nickc@redhat.com>
42
43 * emulparams/msp430all.sh: Update ARCH names.
44
45 2013-09-24 Alan Modra <amodra@gmail.com>
46
47 * emulparams/elf32ppccommon.sh (LIBPATH_SUFFIX): Provide 32-bit
48 and cross-endian values.
49 * emulparams/elf64ppc.sh: Source elf32ppccomon.sh. Delete duplicate,
50 and unset unwanted variables.
51
52 2013-09-24 Alan Modra <amodra@gmail.com>
53
54 * genscripts.sh (LIB_PATH): Don't exclude libdir or tooldir when
55 sysrooted. Also, don't always add tooldir when non-sysrooted.
56 Instead add both when native and tooldir also when TOOL_DIR is
57 defined. Always prepend '=' to paths when sysrooted. Always
58 put paths with LIBPATH_SUFFIX first in search order.
59
60 2013-09-20 Chung-Lin Tang <cltang@codesourcery.com>
61
62 * Makefile.am (enios2elf.c): Change tdir_nios2 to tdir_nios2elf.
63 * Makefile.in: Regenerate.
64
65 2013-09-20 Alan Modra <amodra@gmail.com>
66
67 * configure: Regenerate.
68
69 2013-09-18 Tristan Gingold <gingold@adacore.com>
70
71 * NEWS: Add marker for 2.24.
72
73 2013-09-17 Nick Clifton <nickc@redhat.com>
74
75 PR ld/15957
76 * deffilep.y (def_file_add_directive): Avoid readin past end of
77 buffer.
78
79 2013-08-28 Nick Clifton <nickc@redhat.com>
80
81 PR ld/15896
82 * ld.texinfo: Fix uses of MB abbreviation.
83
84 2013-08-26 Roland McGrath <mcgrathr@google.com>
85
86 * emulparams/elf_i386_nacl.sh (ARCH): Set to i386:nacl.
87 * emulparams/elf_x86_64_nacl.sh (ARCH): Set to i386:x86-64:nacl.
88 * emulparams/elf32_x86_64_nacl.sh (ARCH): Set to i386:x64-32:nacl.
89
90 2013-08-23 Roland McGrath <mcgrathr@google.com>
91
92 * emulparams/elf_nacl.sh (nacl_rodata_addr): Don't add in
93 SIZEOF_HEADERS here; elf.sc does it already.
94
95 2013-08-23 Nick Clifton <nickc@redhat.com>
96
97 PR ld/15839
98 * scripttempl/avr.sc: Do not include gc'able sections into general
99 sections during relocatable links.
100
101 2013-08-22 Christian Franke <franke@computer.org>
102
103 * emultempl/pe.em: Add --disable-large-address-aware option.
104 * ld.texinfo (--disable-large-address-aware): Add documentation.
105
106 2013-08-14 Clemens Lang <clemens.lang@fau.de>
107
108 * ldexp.c: Add LOG2CEIL() builtin function to linker script language
109 * ldgram.y: Likewise
110 * ldlex.l: Likewise
111 * NEWS: Mention the new feature.
112 * ld.texinfo: Document the new feature.
113
114 2013-07-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
115
116 * ldgram.y: Add ALIGN_WITH_INPUT output section attribute.
117 * ldlang.c: Likewise.
118 * ldlang.h: Likewise.
119 * ldlex.l: Likewise.
120 * mri.c: Likewise.
121 * ld.texinfo: Document new feature.
122 * NEWS: Mention new feature.
123
124 2013-07-18 Roland McGrath <mcgrathr@google.com>
125
126 * emultempl/armelf.em (elf32_arm_add_stub_section): Take third
127 argument ALIGNMENT_POWER, use it instead of constant 3.
128
129 2013-07-08 Jeff Law <law@redhat.com>
130
131 * scripttempl/elf.sc: Handle function names and other text after
132 .text.unlikely too.
133
134 2013-07-08 Tristan Gingold <gingold@adacore.com>
135
136 * scripttempl/ia64vms.sc: Add support of per data and per function
137 sections.
138
139 2013-07-01 Alan Modra <amodra@gmail.com>
140
141 * emultempl/ppc64elf.em: (ppc_layout_sections_again): Call
142 ppc64_elf_set_toc rather than ppc64_elf_toc/_bfd_set_gp_value.
143 (gld${EMULATION_NAME}_after_allocation): Likewise.
144
145 2013-06-26 Yufeng Zhang <yufeng.zhang@arm.com>
146
147 * emulparams/aarch64elf32.sh: New file.
148
149 2013-06-26 Yufeng Zhang <yufeng.zhang@arm.com>
150
151 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eaarch64elf32b.c.
152 (eaarch64elf32b.c): New dependency and rule.
153 * Makefile.in: Re-generated.
154 * configure.tgt (aarch64-*-elf): Add aarch64elf32b.
155 (aarch64_be-*-elf, aarch64_be-*-linux*, aarch64-*-linux*): Likewise.
156 * emulparams/aarch64elf32b.sh: New file.
157
158 2013-06-26 Yufeng Zhang <yufeng.zhang@arm.com>
159
160 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eaarch64elf32.c.
161 (eaarch64elf32.c): New dependency and rule.
162 * Makefile.in: Re-generated.
163 * configure.tgt (aarch64-*-elf): Add aarch64elf32.
164 (aarch64_be-*-elf, aarch64_be-*-linux*, aarch64-*-linux*): Likewise.
165 * emulparams/aarch64elf32.sh: New file.
166
167 2013-06-25 Maciej W. Rozycki <macro@codesourcery.com>
168
169 * emultempl/mipself.em (insn32): New variable.
170 (mips_create_output_section_statements): Handle insn32 mode.
171 (PARSE_AND_LIST_PROLOGUE): New macro.
172 (PARSE_AND_LIST_LONGOPTS): Likewise.
173 (PARSE_AND_LIST_OPTIONS): Likewise.
174
175 * gen-doc.texi: Set MIPS.
176 * ld.texinfo: Likewise.
177 (Options specific to MIPS targets): New section.
178 (ld and MIPS family): New node.
179 (Top, Machine Dependent): List the new node.
180
181 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
182
183 * emulparams/elf32btsmip.sh: Arrange for .got.plt to be placed
184 as close to .plt as possible.
185 * scripttempl/elf.sc: Handle $INITIAL_READWRITE_SECTIONS and
186 $PLT_NEXT_DATA variables.
187
188 2013-06-23 Richard Sandiford <rdsandiford@googlemail.com>
189
190 * Makefile.am (ALL_EMULATION_SOURCES): Move MIPS ELF emulations to...
191 (ALL_64_EMULATION_SOURCES): ...here.
192 * Makefile.in: Regenerate.
193
194 2013-06-22 Richard Sandiford <rdsandiford@googlemail.com>
195
196 * NEWS: Document the removal of MIPS ECOFF targets.
197 * ld.texinfo (--gpsize=@var{value}): Use MIPS ELF rather than
198 MIPS ECOFF as an example of a target that supports small data.
199 * ldmain.c (g_switch_value): Likewise.
200 * configure.tgt (mips*-*-pe, mips*-dec-ultrix*, mips*-dec-osf*)
201 (mips*-sgi-irix* [v4 and earlier], mips*el-*-ecoff*, mips*-*-ecoff*)
202 (mips*-*-bsd*, mips*-*-lnews*): Remove cases.
203 * Makefile.am (ALL_EMULATION_SOURCES): Remove emipsbig.c, emipsbsd.c,
204 emipsidt.c, emipsidtl.c, emipslit.c, emipslnews.c and emipspe.c.
205 (emipsbig.c, emipsbsd.c, emipsidt.c, emipsidtl.c, emipslit.c)
206 (emipslnews.c, emipspe.c): Delete rules.
207 * Makefile.in: Regenerate.
208 * emulparams/mipsbig.sh, emulparams/mipsbsd.sh, emulparams/mipsidt.sh,
209 emulparams/mipsidtl.sh, emulparams/mipslit.sh, emulparams/mipslnews.sh,
210 emulparams/mipspe.sh, emultempl/mipsecoff.em: Delete.
211 * emultempl/m68kcoff.em: Update comment to say that MIPS ECOFF support
212 has now been removed.
213 * emultempl/pe.em: Remove TARGET_IS_mipspe checks.
214
215 2013-06-19 Will Newton <will.newton@linaro.org>
216
217 * emulparams/aarch64elf.sh: Remove IREL_IN_PLT.
218
219 2013-06-14 Yufeng Zhang <yufeng.zhang@arm.com>
220
221 * emulparams/aarch64elf.sh: Add IREL_IN_PLT.
222
223 2013-06-12 Nick Clifton <nickc@redhat.com>
224
225 * ldcref.c (output_one_cref): Place common definitions after
226 ordinary definitions but before references.
227
228 2013-06-10 Dilyan Palauzov <dilyan.palauzov@aegee.org>
229
230 PR ld/15598
231 * ld.texinfo (Source Code Reference): Fix typos.
232
233 2013-06-07 Will Newton <will.newton@linaro.org>
234
235 * emulparams/aarch64elf.sh: Add IREL_IN_PLT.
236
237 2013-06-07 Nick Clifton <nickc@redhat.com>
238
239 * ld.texinfo (SEGMENT_START): Rephrase to indicate that a -T
240 option must appear before the SEGMENT_START is encountered in
241 order for the default value to be overridden.
242
243 2013-05-03 Alan Modra <amodra@gmail.com>
244
245 PR ld/15365
246 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
247 Restrict __ehdr_start's export class to no less than STV_HIDDEN.
248
249 2013-05-03 Alan Modra <amodra@gmail.com>
250
251 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
252 Only call lang_for_each_statement if an ELF hash table is used.
253
254 2013-05-02 Nick Clifton <nickc@redhat.com>
255
256 * Makefile.am: Add emsp430X.c
257 * Makefine.in: Regenerate.
258 * configure.tgt (msp430): Add msp430X emulation.
259 * ldmain.c (multiple_definition): Only disable relaxation if it
260 was enabled by the user.
261 * ldmain.h (RELAXATION_ENABLED_BY_USER): New macro.
262 * emulparams/msp430all.sh: Add support for MSP430X.
263 * emultempl/generic.em: (before_parse): Enable relaxation for the
264 MSP430.
265 * scripttempl/msp430.sc: Reorganize sections. Add .rodata
266 section.
267 * scripttempl/msp430_3.sc: Likewise.
268 * NEWS: Mention support for MSP430X.
269
270 2013-05-01 Maciej W. Rozycki <macro@codesourcery.com>
271
272 * configure.tgt: Replace alpha*-*-linuxecoff* pattern with
273 alpha*-*-linux*ecoff*. Update the `sed' pattern used to convert
274 from alpha*-*-linux-* to alpha*-*-linux*ecoff*.
275
276 2013-05-01 Maciej W. Rozycki <macro@codesourcery.com>
277
278 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
279 Use is_elf_hash_table rather than a handcoded condition.
280
281 2013-04-30 Nick Clifton <nickc@redhat.com>
282
283 * ld.texinfo (SORT_BY_ALIGNMENT): Fix and clarify typo - sections
284 are sorted by descending order of alignment.
285
286 2013-04-29 Nick Clifton <nickc@redhat.com>
287
288 * scripttempl/DWARF.sc: Add support for .debug_line.* and
289 .debug_line_end.
290
291 2013-04-29 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
292
293 * emultempl/pe.em [cygwin]: Do not merge rdata with v2
294 psuedo-relocs.
295
296 2013-04-28 Thomas Schwinge <thomas@codesourcery.com>
297
298 * scripttempl/armbpabi.sc: Replace "source" usage with ".".
299 * scripttempl/avr.sc: Likewise.
300 * scripttempl/elf.sc: Likewise.
301 * scripttempl/elf32cr16.sc: Likewise.
302 * scripttempl/elf32crx.sc: Likewise.
303 * scripttempl/elf32msp430.sc: Likewise.
304 * scripttempl/elf32msp430_3.sc: Likewise.
305 * scripttempl/elf32sh-symbian.sc: Likewise.
306 * scripttempl/elf64hppa.sc: Likewise.
307 * scripttempl/elf_chaos.sc: Likewise.
308 * scripttempl/elfd10v.sc: Likewise.
309 * scripttempl/elfd30v.sc: Likewise.
310 * scripttempl/elfi370.sc: Likewise.
311 * scripttempl/elfm68hc11.sc: Likewise.
312 * scripttempl/elfm68hc12.sc: Likewise.
313 * scripttempl/elfxgate.sc: Likewise.
314 * scripttempl/elfxtensa.sc: Likewise.
315 * scripttempl/epiphany_4x4.sc: Likewise.
316 * scripttempl/i386beos.sc: Likewise.
317 * scripttempl/i386go32.sc: Likewise.
318 * scripttempl/ia64vms.sc: Likewise.
319 * scripttempl/ip2k.sc: Likewise.
320 * scripttempl/iq2000.sc: Likewise.
321 * scripttempl/mep.sc: Likewise.
322 * scripttempl/mmo.sc: Likewise.
323 * scripttempl/v850.sc: Likewise.
324 * scripttempl/v850_rh850.sc: Likewise.
325 * scripttempl/xstormy16.sc: Likewise.
326
327 2013-04-26 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
328
329 * scripttempl/avr.sc: Add ALIGN directive after *(.progmem*).
330
331 2013-04-26 Alan Modra <amodra@gmail.com>
332
333 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Test
334 unresolved_syms_in_shared_libs rather than !executable to
335 determine whether to load DT_NEEDED libraries.
336
337 2013-04-25 Alan Modra <amodra@gmail.com>
338
339 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32lppclinux.c.
340 (eelf32lppclinux.c): New rule.
341 * Makefile.in: Regenerate.
342 * configure.tgt: Merge powerpc-linux and other powerpc-elf targets
343 with corresponding little-endian targets.
344 * emulparams/elf32lppc.sh: Update comment.
345 * emulparams/elf32lppclinux.sh: New.
346
347 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
348
349 * configure.tgt (targ_extra_emuls): Adds elf32_x86_64 for
350 x86_64-*-elf*.
351 (targ_extra_libpath): Likewise.
352 (tdir_elf_i386): Replace x86_64 with i386 for x86_64-*-elf*.
353
354 2013-04-24 Yufeng Zhang <yufeng.zhang@arm.com>
355
356 * emulparams/aarch64elf.sh: Define ELFSIZE=64.
357 * emulparams/aarch64linux.sh: Ditto.
358 * emultempl/aarch64elf.em (aarch64_elf_before_allocation):
359 Replace elf64 with elf${ELFSIZE}.
360 (elf64_aarch64_add_stub_section): Likewise.
361 (build_section_lists): Likewise.
362 (gld${EMULATION_NAME}_after_allocation): Likewise.
363 (gld${EMULATION_NAME}_finish): Likewise.
364 (aarch64_elf_create_output_section_statements): Likewise.
365
366 2013-04-24 Nick Clifton <nickc@redhat.com>
367
368 PR ld/15389
369 * scripttempl/avr.sc: Add .note.gnu.build-id section.
370
371 2013-04-22 Alan Modra <amodra@gmail.com>
372
373 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
374 Check return from ppc64_elf_init_stub_bfd.
375
376 2013-04-15 Nick Clifton <nickc@redhat.com>
377
378 * Makefile.am (ELF_DEPS): Add a dependency upon
379 scripttempl/DWARF.sc.
380 (ELF_GEN_DEPS): Likewise.
381 (emmo.c): Likewise.
382 * Makefile.in: Regenerate.
383
384 * scripttempl/armbpabi.sc: Replace DWARF sections with an
385 inclusion of DWARF.sc.
386 * scripttempl/avr.sc: Likewise.
387 * scripttempl/elf.sc: Likewise.
388 * scripttempl/elf32cr16.sc: Likewise.
389 * scripttempl/elf32crx.sc: Likewise.
390 * scripttempl/elf32msp430.sc: Likewise.
391 * scripttempl/elf32msp430_3.sc: Likewise.
392 * scripttempl/elf32sh-symbian.sc: Likewise.
393 * scripttempl/elf64hppa.sc: Likewise.
394 * scripttempl/elf_chaos.sc: Likewise.
395 * scripttempl/elfd10v.sc: Likewise.
396 * scripttempl/elfd30v.sc: Likewise.
397 * scripttempl/elfi370.sc: Likewise.
398 * scripttempl/elfm68hc11.sc: Likewise.
399 * scripttempl/elfm68hc12.sc: Likewise.
400 * scripttempl/elfxgate.sc: Likewise.
401 * scripttempl/elfxtensa.sc: Likewise.
402 * scripttempl/epiphany_4x4.sc: Likewise.
403 * scripttempl/i386beos.sc: Likewise.
404 * scripttempl/i386go32.sc: Likewise.
405 * scripttempl/ia64vms.sc: Likewise.
406 * scripttempl/ip2k.sc: Likewise.
407 * scripttempl/iq2000.sc: Likewise.
408 * scripttempl/mep.sc: Likewise.
409 * scripttempl/mmo.sc: Likewise.
410 * scripttempl/v850.sc: Likewise.
411 * scripttempl/v850_rh850.sc: Likewise.
412 * scripttempl/xstormy16.sc: Likewise.
413 * scripttempl/DWARF.sc: New.
414
415 2013-04-04 Alan Modra <amodra@gmail.com>
416
417 * ldlang.c (load_symbols): Report "error adding symbols" on
418 bfd_link_add_symbols failure.
419 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
420 * emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Likewise.
421 (gld${EMULATION_NAME}_try_needed): Likewise.
422
423 2013-03-27 Georg-Johann Lay <gjl@gcc.gnu.org>
424
425 PR ld/13812
426 * scripttempl/avr.sc: Place trampolines before .progmem section.
427
428 2013-03-25 Kai Tietz <ktietz@redhat.com>
429
430 * ld.texinfo (--disable-runtime-pseudo-reloc): Adjust default.
431
432 2013-03-21 Michael Schewe <michael.schewe@gmx.net>
433
434 * ld.texinfo (H8/300): Add description of relaxation of
435 mov @(disp:32,ERx) to mov @(disp:16,ERx).
436
437 2013-03-21 Kai Tietz <ktietz@redhat.com>
438
439 * pe-dll.c (process_def_file_and_drectve): Don't handle VC
440 generated C++-symbols as stdcall/fastcall.
441
442 2013-03-18 Alan Modra <amodra@gmail.com>
443
444 * ld.texinfo (--as-needed): Update.
445
446 2013-03-14 Jakub Jelinek <jakub@redhat.com>
447
448 * emulparams/aarch64linux.sh (LIBPATH_SUFFIX): Set to 64 for
449 aarch64linux* emulations.
450
451 2013-03-07 Alan Modra <amodra@gmail.com>
452
453 * ldfile.c (ldfile_open_command_file_1): Return after einfo
454 to avoid warning.
455
456 2013-03-05 Corinna Vinschen <vinschen@redhat.com>
457
458 * configure.host: Add x86_64-*-cygwin* as valid host.
459 * configure.tgt: Add x86_64-*-cygwin* as valid target.
460 * emultempl/pep.em: Handle different requirements for Cygwin in terms
461 of start addresses for executables and DLLs, based on memory model in
462 http://cygwin.com/ml/cygwin-developers/2013-02/msg00027.html
463
464 2013-03-05 Alan Modra <amodra@gmail.com>
465
466 PR ld/15222
467 * ldlang.c (lang_size_sections_1): When given an lma_region align
468 LMA as per VMA only if lma_region is the same as region.
469
470 2013-02-27 Nick Clifton <nickc@redhat.com>
471
472 * scripttempl/elf32msp430.sc: Add placement of .data.* sections.
473 Add alignment of .bss section.
474 * scripttempl/elf32msp430_3.sc: Likewise.
475
476 2013-02-26 Nick Clifton <nickc@redhat.com>
477
478 PR ld/15188
479 * ld.texinfo: Fix typos.
480
481 2013-02-21 Alan Modra <amodra@gmail.com>
482
483 * scripttempl/elf.sc (.init_array, .fini_array): Don't sort all
484 .init_array/.fini_array input sections before .ctors/.dtors input
485 sections.
486 (CTORS_IN_INIT_ARRAY, DTORS_IN_INIT_ARRAY): Adjust to suit.
487
488 2013-02-21 Alan Modra <amodra@gmail.com>
489
490 * emultempl/elf32.em (write_build_id, setup_build_id): Adjust
491 for elf_tdata changes.
492
493 2013-02-21 Alan Modra <amodra@gmail.com>
494
495 * emultempl/elf-generic.em: Use newly defined elf_obj_tdata
496 accessor macros.
497
498 2013-02-20 Alan Modra <amodra@gmail.com>
499
500 * Makefile.am: Use $(ELF_DEPS) on a number of eelf*.c rules.
501 * Makefile.in: Regenerate.
502
503 2013-02-19 Sandra Loosemore <sandra@codesourcery.com>
504
505 PR ld/15146
506 * plugin.c (plugin_notice): Add null check before dereferencing
507 pointer.
508
509 2013-02-19 Alan Modra <amodra@gmail.com>
510
511 * emultempl/elf32.em (emit_note_gnu_build_id): New static var.
512 Replace all info->emit_note_gnu_build_id refs.
513 (id_note_section_size): Rename from
514 gld${EMULATION_NAME}_id_note_section_size.
515 (struct build_id_info): Delete.
516 (write_build_id): Rename from
517 gld${EMULATION_NAME}_write_build_id_section.
518 Update elf_tdata usage. Style, formatting.
519 (setup_build_id): New function.
520 (gld${EMULATION_NAME}_after_open): Use setup_build_id.
521
522 2013-02-16 H.J. Lu <hongjiu.lu@intel.com>
523
524 PR ld/15146
525 * plugin.c (plugin_notice): Replace the undefined dummy bfd with
526 the real one.
527
528 2013-02-16 H.J. Lu <hongjiu.lu@intel.com>
529
530 PR ld/15141
531 * plugin.c (plugin_notice): Also trace symbol from the IR bfd.
532
533 2013-02-15 Kai Tietz <ktietz@redhat.com>
534
535 * scripttempl/pep.sc (.xdata): Merge .xdata* into .xdata section.
536 (.pdata): Merge .pdata* into .pdata section.
537
538 2013-02-11 Alan Modra <amodra@gmail.com>
539
540 * ldlang.c (get_init_priority): Comment typo.
541 (lang_finish): Free link_info.hash and lang_definedness_table.
542 (lang_end): Delete lang_definedness_table comment.
543
544 2013-02-11 Alan Modra <amodra@gmail.com>
545
546 PR ld/15130
547 * ld.texinfo (-rpath-link): Typo fix.
548
549 2013-02-08 Markos Chandras <markos.chandras@imgtec.com>
550
551 * emultempl/metagelf.em (build_section_lists): Use sec_info_type
552 rather than userdata->flags.just_syms.
553
554 2013-02-06 Sandra Loosemore <sandra@codesourcery.com>
555 Andrew Jenner <andrew@codesourcery.com>
556
557 Based on patches from Altera Corporation.
558
559 * Makefile.am (enios2elf.c): New rule.
560 * Makefile.in: Regenerated.
561 * configure.tgt: Add case for nios2*-*-*.
562 * emulparams/nios2elf.sh: New file.
563 * NEWS: Note Altera Nios II support.
564
565 2013-02-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
566
567 * emultempl/avrelf.em (avr_elf_before_parse): New function.
568 (LDEMUL_BEFORE_PARSE): Define.
569
570 2013-02-06 Alan Modra <amodra@gmail.com>
571
572 PR ld/15096
573 * emultempl/elf32.em: Revert 2013-02-04, 2013-01-22 and 2013-01-21.
574 * emultempl/alphaelf.em: Revert 2013-02-04.
575 * emultempl/cr16elf.em: Likewise.
576 * emultempl/crxelf.em: Likewise.
577 * emultempl/hppaelf.em: Likewise.
578 * emultempl/ia64elf.em: Likewise.
579 * emultempl/mipself.em: Likewise.
580 * NEWS: Revert 2013-01-21.
581
582 2013-02-04 H.J. Lu <hongjiu.lu@intel.com>
583
584 PR ld/15096
585 * emultempl/alphaelf.em (alpha_after_parse): Call
586 gld${EMULATION_NAME}_after_parse instead of after_parse_default.
587 * emultempl/cr16elf.em (cr16elf_after_parse): Likewise.
588 * emultempl/crxelf.em (crxelf_after_parse): Likewise.
589 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
590 * emultempl/mipself.em (mips_after_parse): Likewise.
591
592 * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Renamed
593 to ...
594 (gld_${EMULATION_NAME}_after_parse): This. Call
595 gld${EMULATION_NAME}_after_parse instead of after_parse_default.
596 (LDEMUL_AFTER_PARSE): Set to gld_${EMULATION_NAME}_after_parse.
597
598 * emultempl/elf32.em (new_dtags_set): New variable.
599 (gld${EMULATION_NAME}_before_parse): Don't set link_info.new_dtags
600 here.
601 (gld${EMULATION_NAME}_after_parse): New function.
602 (ld_${EMULATION_NAME}_emulation): Replace after_parse_default'
603 with gld${EMULATION_NAME}_after_parse.
604 (gld${EMULATION_NAME}_handle_option): Set new_dtags_set to TRUE
605 when setting link_info.new_dtags.
606
607 2013-01-25 Kai Tietz <ktietz@redhat.com>
608
609 * deffilep.y (def_image_name): Adjust type of base-address
610 argument.
611 (%union): Add new type bfd_vma as vma.
612 (VMA): New rule.
613 (opt_base): Use VMA instead of NUMBER rule to evaluate value.
614 (def_file_print): Use bfd's fprintf_vma to output base-address.
615
616 2013-01-24 Nick Clifton <nickc@redhat.com>
617
618 * NEWS: Mention support for V850E3V5 architecture.
619
620 2013-01-23 Martin Koegler <martin.koegler@chello.at>
621
622 PR ld/15041
623 * scripttempl/pep.sc (.pdata): Only accept .pdata sections.
624 (.xdata): Similarly.
625 (.debug_frame): Similarly.
626
627 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
628
629 PR ld/15037
630 * scripttempl/avr.sc (.eeprom): Keep it.
631
632 2013-01-23 Leif Ekblad <leif@rdos.net>
633
634 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64rdos.c.
635 (eelf64rdos.c): New rule.
636 * emulparams/elf64rdos.sh: New file.
637 * configure.tgt (x86_64-*-rdos*): Use above.
638 * Makefile.in: Regenerate.
639
640 2013-01-22 Roland McGrath <mcgrathr@google.com>
641
642 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
643 new_dtags to TRUE for *-*-nacl* targets.
644
645 2013-01-21 Mike Frysinger <vapier@gentoo.org>
646
647 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
648 link_info.new_dtags to TRUE for linux/gnu targets.
649 * NEWS: Mention new dtags default.
650
651 2013-01-19 H.J. Lu <hongjiu.lu@intel.com>
652
653 * Makefile.am (HOSTING_SCRT0): New.
654
655 * configure.host (HOSTING_SCRT0): New. Used for PIE.
656
657 * configure.in (HOSTING_SCRT0): New AC_SUBST.
658
659 * Makefile.in: Regenerated.
660 * configure: Likewise.
661
662 2013-01-18 Mike Frysinger <vapier@gentoo.org>
663
664 * NEWS: Mention change in behavior with --enable-new-dtags.
665 * ld.texinfo (Options): Clarify --enable-new-dtags behavior.
666
667 2013-01-14 Leif Ekblad <leif@rdos.net>
668 Alan Modra <amodra@gmail.com>
669
670 * ld.texinfo (-Tldata-segment): Describe.
671 * ldlex.h (OPTION_TLDATA_SEGMENT): New enum value.
672 * lexsup.c (ld_options): Add -Tldata-segment.
673 (parse_args): Handle OPTION_TLDATA_SEGMENT.
674 * scripttempl/elf.sc: Support LARGE_DATA_ADDR.
675
676 2013-01-10 H.J. Lu <hongjiu.lu@intel.com>
677
678 * deffilep.y: Remove trailing white spaces.
679 * elf-hints-local.h: Likewise.
680 * ldexp.c: Likewise.
681 * ldlang.h: Likewise.
682 * ldmisc.c: Likewise.
683 * ldwrite.c: Likewise.
684 * pe-dll.c: Likewise.
685 * emulparams/criself.sh: Likewise.
686 * emulparams/crislinux.sh: Likewise.
687 * emulparams/elf32_tic6x_le.sh: Likewise.
688 * emulparams/elf32bmipn32-defs.sh: Likewise.
689 * emulparams/elf32mb_linux.sh: Likewise.
690 * emulparams/elf32mep.sh: Likewise.
691 * emulparams/elf32microblaze.sh: Likewise.
692 * emulparams/elf32ppc.sh: Likewise.
693 * emulparams/elf64_s390.sh: Likewise.
694 * emulparams/elf64alpha.sh: Likewise.
695 * emulparams/elf_s390.sh: Likewise.
696 * emulparams/elf_x86_64.sh: Likewise.
697 * emulparams/tic80coff.sh: Likewise.
698 * emultempl/aix.em: Likewise.
699 * emultempl/avrelf.em: Likewise.
700 * emultempl/cr16elf.em: Likewise.
701 * emultempl/pe.em: Likewise.
702 * emultempl/pep.em: Likewise.
703 * emultempl/spuelf.em: Likewise.
704 * emultempl/tic6xdsbt.em: Likewise.
705
706 2013-01-10 Will Newton <will.newton@imgtec.com>
707
708 * Makefile.am: Add Meta.
709 * Makefile.in: Regenerate.
710 * configure.tgt: Add Meta.
711 * emulparams/elf32metag.sh: New file.
712 * emultempl/metagelf.em: New file.
713
714 2013-01-09 Alan Modra <amodra@gmail.com>
715
716 * emulparams/elf_x86_64.sh (LARGE_BSS_AFTER_BSS): Define.
717 * emulparams/elf32_x86_64.sh: Likewise.
718 * emulparams/elf_k1om.sh: Likewise.
719 * emulparams/elf_l1om.sh: Likewise.
720 * scripttempl/elf.sc (LARGE_BSS): Define rather than appending to
721 OTHER_BSS_SECTIONS. Substitute in script.
722
723 2013-01-08 Leif Ekblad <leif@rdos.net>
724
725 * scripttempl/elf.sc (RODATA_ADDR): Typo fix.
726
727 2013-01-08 Alan Modra <amodra@gmail.com>
728
729 * emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): Replace
730 "name" param with a bfd_link_needed_list pointer. Update caller.
731 (gld${EMULATION_NAME}_check_ld_elf_hints): Likewise.
732
733 2013-01-08 Alan Modra <amodra@gmail.com>
734
735 * Makefile.am (ALL_EMULATION_SOURCES): Correct eavrxmega entries.
736 * Makefile.in: Regenerate.
737
738 2013-01-07 H.J. Lu <hongjiu.lu@intel.com>
739
740 * lexsup.c (ld_options): Add fuse-ld= for GCC linker option
741 compatibility.
742
743 2013-01-07 Patrice Dumas <pertusus@free.fr>
744
745 * ld.texinfo: Replace @ with @@ when it is part of the text.
746 Correct ordering of M68HC11 entry.
747
748 2013-01-04 Juergen Urban <JuergenUrban@gmx.de>
749
750 * configure.tgt: Support ELF files for Sony Playstation 2 (for
751 ps2dev and ps2sdk).
752 * emulparams/elf32lr5900n32.sh: Create linker script for Sony
753 Playstation 2 ELF files using MIPS ABI n32.
754 * emulparams/elf32lr5900.sh: Create linker script for Sony
755 Playstation 2 ELF files using MIPS ABI o32.
756 * Makefile.am: Add linker scripts for Sony Playstation 2 ELF
757 files.
758
759 2013-01-02 H.J. Lu <hongjiu.lu@intel.com>
760
761 * ldver.c (ldversion): Update copyright year to 2013.
762
763 For older changes see ChangeLog-2012
764 \f
765 Copyright (C) 2013 Free Software Foundation, Inc.
766
767 Copying and distribution of this file, with or without modification,
768 are permitted in any medium without royalty provided the copyright
769 notice and this notice are preserved.
770
771 Local Variables:
772 mode: change-log
773 left-margin: 8
774 fill-column: 74
775 version-control: never
776 End: