* scripttempl/elf32cr16.sc: Emit empty script for ld -r and ld -Ur.
[binutils-gdb.git] / ld / ChangeLog
1 2009-09-28 Alan Modra <amodra@bigpond.net.au>
2
3 * scripttempl/elf32cr16.sc: Emit empty script for ld -r and ld -Ur.
4 * scripttempl/elf32cr16c.sc: Likewise.
5 * scripttempl/elf32crx.sc: Likewise.
6 * scripttempl/aix.sc: Delete ${RELOCATING-0}.
7 * scripttempl/avr.sc: Likewise.
8 * scripttempl/elf32msp430.sc: Likewise.
9 * scripttempl/elf32msp430_3.sc: Likewise.
10 * scripttempl/elf32sh-symbian.sc: Likewise.
11 * scripttempl/elf_chaos.sc: Likewise.
12 * scripttempl/elfi370.sc: Likewise.
13 * scripttempl/nw.sc: Likewise.
14 * scripttempl/psos.sc: Likewise.
15 * scripttempl/armbpabi.sc: Delete ${RELOCATING-0} and ${CONSTRUCTING-0}.
16 * scripttempl/elf.sc: Likewise.
17 * scripttempl/elf64hppa.sc: Likewise.
18 * scripttempl/elfd10v.sc: Likewise.
19 * scripttempl/elfd30v.sc: Likewise.
20 * scripttempl/elfm68hc11.sc: Likewise.
21 * scripttempl/elfm68hc12.sc: Likewise.
22 * scripttempl/elfmicroblaze.sc: Likewise.
23 * scripttempl/elfxtensa.sc: Likewise.
24 * scripttempl/iq2000.sc: Likewise.
25 * scripttempl/mep.sc: Likewise.
26 * scripttempl/xstormy16.sc: Likewise.
27
28 2009-09-27 Christopher Faylor <me+cygwin@cgf.cx>
29
30 * ldlang.c (lang_size_sections_1): Always force output vma to zero for
31 relocatable sections.
32 (lang_size_sections_1): Revert previous COFF-only accommodation for
33 relocatable sections.
34
35 2009-09-25 Martin Thuresson <martint@google.com>
36
37 Update soruces to make arm targets compile cleanly with
38 -Wc++-compat:
39 * emultempl/armelf.em: Add casts.
40
41 2009-09-23 Matt Rice <ratmice@gmail.com>
42
43 * emultempl/elf32.em (gld${EMULATION_NAME}_add_options): Add --audit,
44 --depaudit, and -P options.
45 (gld${EULATION_NAME}_handle_options): Ditto.
46 (gld${EULATION_NAME}_list_options): Ditto.
47 (gld${EMULATION_NAME}_append_to_separated_string): New function for
48 handling rpath-like colon separated strings.
49 (gld${EMULATION_NAME}_before_allocation): Pass the audit and depaudit
50 libs to bfd. Propagate DT_AUDIT from needed libs to depaudit.
51 * ld.texinfo: Document new options.
52
53 2009-09-23 Nick Clifton <nickc@redhat.com>
54
55 * po/vi.po: Updated Vietnamese translation.
56
57 2009-09-22 Alan Modra <amodra@bigpond.net.au>
58
59 * scripttempl/a29k.sc: Delete.
60 * scripttempl/ebmon29k.sc: Delete.
61 * scripttempl/m68klynx.sc: Delete.
62 * scripttempl/sa29200.sc: Delete.
63 * scripttempl/sparclynx.sc: Delete.
64
65 2009-09-21 Alan Modra <amodra@bigpond.net.au>
66
67 * emultempl/ppc32elf.em (no_tls_get_addr_opt): New var.
68 (ppc_before_allocation): Pass to ppc_elf_tls_setup.
69 (OPTION_NO_TLS_GET_ADDR_OPT): Define. Redefine other options in
70 terms of previous option.
71 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add
72 --no-tls-get-addr-optimize.
73 (PARSE_AND_LIST_ARGS_CASES): Handle it.
74 * emultempl/ppc64elf.em (no_tls_get_addr_opt): New var.
75 (ppc_before_allocation): Pass to ppc64_elf_tls_setup.
76 (OPTION_NO_TLS_GET_ADDR_OPT): Define.
77 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add
78 --no-tls-get-addr-optimize.
79 (PARSE_AND_LIST_ARGS_CASES): Handle it.
80
81 2009-09-18 Nick Clifton <nickc@redhat.com>
82
83 * po/es.po: Updated Spanish translation.
84
85 2009-09-13 Alan Modra <amodra@bigpond.net.au>
86
87 PR ld/6766
88 * lexsup.c (parse_args <-e>): Revert 2009-03-18 change.
89 * ldemul.c (after_parse_default): Add entry symbol as undef.
90 * emultempl/alphaelf.em (alpha_after_parse): Call after_parse_default.
91 * emultempl/cr16elf.em (cr16elf_after_parse): Likewise.
92 * emultempl/crxelf.em (crxelf_after_parse): Likewise.
93 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
94 * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Likewise.
95 * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Call
96 after_parse_default and delete now duplicate code.
97 * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse): Likewise.
98 * scripttempl/elf32cr16.sc: No need to make entry extern.
99 * scripttempl/elf32cr16c.sc: Likewise.
100 * scripttempl/elf32crx.sc: Likewise.
101 * scripttempl/elf32xc16xs.sc: Only provide ENTRY on final link.
102
103 2009-09-11 Nick Clifton <nickc@redhat.com>
104
105 * po/ld.pot: Updated by the Translation project.
106 * po/fi.po: Updated Finnish translation.
107
108 2009-09-11 Martin Thuresson <martint@google.com>
109
110 Updated sources to compile cleanly with -Wc++-compat:
111 * ld.h (enum endian_enum,enum symbolic_enum,enum
112 dynamic_list_enum): Move to top level.
113 * ldcref.c: Add casts.
114 * ldctor.c: Add casts.
115 * ldexp.c
116 * ldexp.h (enum node_tree_enum,enum phase_enum): Move to top level.
117 * ldlang.c: Add casts. (lang_insert_orphan): Use enum name instead
118 of integer.
119 * ldlang.h (enum statement_enum): Move to top level.
120 * ldmain.c: Add casts.
121 * ldwrite.c: Add casts.
122 * lexsup.c: Add casts. (enum control_enum): Move to top level.
123 * mri.c: Add casts. (mri_draw_tree): Use enum name instead of
124 integer.
125
126 2009-09-09 Alan Modra <amodra@bigpond.net.au>
127
128 * scripttempl/aix.sc: Only provide ENTRY on final link.
129 * scripttempl/alpha.sc: Likewise.
130 * scripttempl/armcoff.sc: Likewise.
131 * scripttempl/crisaout.sc: Likewise.
132 * scripttempl/delta68.sc: Likewise.
133 * scripttempl/ebmon29k.sc: Likewise.
134 * scripttempl/elf32xc16x.sc: Likewise.
135 * scripttempl/elf32xc16xl.sc: Likewise.
136 * scripttempl/elfmicroblaze.sc: Likewise.
137 * scripttempl/epocpe.sc: Likewise.
138 * scripttempl/h8300.sc: Likewise.
139 * scripttempl/h8300h.sc: Likewise.
140 * scripttempl/h8300hn.sc: Likewise.
141 * scripttempl/h8300s.sc: Likewise.
142 * scripttempl/h8300sn.sc: Likewise.
143 * scripttempl/h8300sx.sc: Likewise.
144 * scripttempl/h8300sxn.sc: Likewise.
145 * scripttempl/hppaelf.sc: Likewise.
146 * scripttempl/i386beos.sc: Likewise.
147 * scripttempl/i386coff.sc: Likewise.
148 * scripttempl/i386go32.sc: Likewise.
149 * scripttempl/m68kaux.sc: Likewise.
150 * scripttempl/m68klynx.sc: Likewise.
151 * scripttempl/m88kbcs.sc: Likewise.
152 * scripttempl/maxqcoff.sc: Likewise.
153 * scripttempl/mcorepe.sc: Likewise.
154 * scripttempl/mips.sc: Likewise.
155 * scripttempl/ppcpe.sc: Likewise.
156 * scripttempl/sa29200.sc: Likewise.
157 * scripttempl/sparccoff.sc: Likewise.
158 * scripttempl/sparclynx.sc: Likewise.
159 * scripttempl/tic4xcoff.sc: Likewise.
160 * scripttempl/tic54xcoff.sc: Likewise.
161 * scripttempl/tic80coff.sc: Likewise.
162 * scripttempl/z8000.sc: Likewise.
163
164 2009-09-07 Tristan Gingold <gingold@adacore.com>
165
166 * po/ld.pot: Regenerate.
167
168 2009-09-05 Martin Thuresson <martin@mtme.org>
169
170 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols,
171 gld${EMULATION_NAME}_try_needed): Rename variable class to
172 link_class.
173
174 2009-09-04 Tristan Gingold <gingold@adacore.com>
175
176 * NEWS: Add marker for 2.20.
177
178 2009-09-04 Alan Modra <amodra@bigpond.net.au>
179
180 * scripttempl/elf.sc (.text): Add cold text sections.
181
182 2009-09-04 Jie Zhang <jie.zhang@analog.com>
183
184 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Add .l2.text
185 and .l2.data.
186
187 2009-09-03 Dave Korn <dave.korn.cygwin@gmail.com>
188
189 * scripttempl/pe.sc (.text): Add "*(.text.*)" in order to catch
190 new GCC hot/cold/unlikely partitions.
191 * scripttempl/pep.sc: Likewise.
192 * scripttempl/epocpe.sc: Likewise.
193 * scripttempl/mcorepe.sc: Likewise.
194 * scripttempl/ppcpe.sc: Likewise.
195
196 2009-09-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
197
198 * Makefile.am (ldgram.o, ldlex.o, deffilep.o): Supply correct
199 source file name for generated files which may be in $(srcdir).
200 * Makefile.in: Regenerate.
201
202 2009-09-01 H.J. Lu <hongjiu.lu@intel.com>
203
204 * ldver.c (ldversion): Change to "Copyright 2009".
205
206 2009-09-01 Jie Zhang <jie.zhang@analog.com>
207
208 * scripttempl/elf.sc: Add ${USER_LABEL_PREFIX} to _start, etext,
209 _stack and __bss_start.
210 * emulparams/bfin.sh (ENTRY): Remove.
211
212 2009-08-30 Alan Modra <amodra@bigpond.net.au>
213
214 PR ld/10569
215 * ldexp.c (fold_name <MAXPAGESIZE>): Return config.maxpagesize.
216 (fold_name <COMMONPAGESIZE>): Similarly.
217 * ldlang.c (output_target): Make global.
218 * ldlang.h (output_target): Declare.
219 * ldmain.c (main): Set config.maxpagesize from bfd_emul_get_maxpagesize.
220 Similarly for config.commonpagesize.
221 * ldemul.c (set_output_arch_default): Call bfd_emul_set_maxpagesize
222 and bfd_emul_set_commonpagesize.
223 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Don't call
224 bfd_emul_set_maxpagesize or bfd_emul_set_commonpagesize here.
225
226 2009-08-29 Martin Thuresson <martin@mtme.org>
227
228 * ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop)
229 (exp_trinop, exp_unop, exp_nameop, exp_assop): Rename variable new
230 to new_e.
231 * ldfile.c (ldfile_add_library_path): Rename variable new to
232 new_dirs. (ldfile_add_arch): Rename variable new to new_arch.
233 * ldlang.c (new_statement, lang_final, lang_add_wild)
234 (lang_target, lang_add_fill, lang_add_data, lang_add_assignment)
235 (lang_add_insert): Rename variable new to new_stmt. (new_afile):
236 Added missing cast. (lang_memory_region_lookup): Rename variable
237 new to new_region. (init_os): Rename variable new to
238 new_userdata. (lang_add_section): Rename variable new to
239 new_section. (ldlang_add_undef): Rename variable new to
240 new_undef. (realsymbol): Rename variable new to new_name.
241
242 2009-08-26 Nick Clifton <nickc@redhat.com>
243
244 PR ld/10555
245 * emultempl/elf32.em (_after_open): Do not create a
246 .note.gnu-build-id section if there are no input files.
247
248 2009-08-24 Nick Clifton <nickc@redhat.com>
249
250 * scripttempl/elfxtensa.sc (DISCARDED): Discard sections with
251 .gnu.lto_ prefix.
252 * scripttempl/armbpabi.sc: Likewise.
253 * scripttempl/elf32sh-symbian.sc: Likewise.
254 * scripttempl/elf64hppa.sc: Likewise.
255 * scripttempl/mep.sc: Likewise.
256
257 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
258
259 * Makefile.am (ldmain.o, ldfile.o): Fix typos in non-fastdep
260 rules.
261 (eelf32_spu.o): Add dependency tracking.
262 * Makefile.in: Regenerate.
263
264 * Makefile.am (am__skiplex, am__skipyacc): New.
265 * Makefile.in: Regenerate.
266
267 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
268
269 * Makefile.am (bin_PROGRAMS): Renamed from ...
270 (noinst_PROGRAMS): ... this.
271 (transform): Override, including the renaming of ld-new to ld.
272 (install-exec-local): Installation of ld in $(bindir) not needed
273 here any more.
274 (AM_CPPFLAGS): Renamed from ...
275 (INCLUDES): ... this.
276 (MAINTAINERCLEANFILES): Add ld.1.
277 * Makefile.in: Regenerate.
278
279 * Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus. Add
280 no-texinfo.tex, no-dist, foreign.
281 (TEXINFO_TEX): New variable.
282 (install-data-local): Removed, not needed any more.
283 (all): Dependencies upon info and ld.1 not needed any more.
284 (MKDEP, DEP, DEP1, dep.sed, dep, dep-in, dep-am): Removed.
285 (mkdep generated section): Removed.
286 (ldgram.o, ldlex.o, deffilep.o, ldmain.o, ldfile.o): Rewrite to
287 use automake dependency tracking mechanism.
288 (EXTRA_ld_new_SOURCES): Add pep-dll.c, pe-dll.c, and
289 $(ALL_EMULATIONS:.o=.c) $(ALL_64_EMULATIONS:.o=.c) so their
290 dependencies are tracked too.
291 (BUILT_SOURCES): New, list $(GENERATED_HFILES) to ensure they
292 are built early.
293 * configure.in: Use AM_MAINTAINER_MODE.
294 * aclocal.m4, configure, Makefile.in: Regenerate.
295
296 * Makefile.am (pdf__strip_dir, install-pdf, install-pdf-am)
297 (install-pdf-recursive, html__strip_dir, install-html)
298 (install-html-am, install-html-recursive): Remove.
299 * Makefile.in: Regenerate.
300
301 * Makefile.in: Regenerate.
302 * aclocal.m4: Likewise.
303 * config.in: Likewise.
304 * configure: Likewise.
305
306 2009-08-21 Richard Guenther <rguenther@suse.de>
307
308 * scripttempl/elf.sc: Discard sections with .gnu.lto_ prefix.
309
310 2009-08-12 Tristan Gingold <gingold@adacore.com>
311
312 * ld.h (fat_user_section_struct): Add map_symbol_def_count field.
313 * ldlang.c (hash_entry_addr_cmp): New function.
314 (print_all_symbols): Sort the symbols by address before printing them.
315
316 2009-08-10 Alan Modra <amodra@bigpond.net.au>
317
318 PR 10474
319 * ldemul.c (after_allocation_default): Run lang_relax_sections.
320 * ldlang.h (lang_relax_sections): Declare.
321 * ldlang.c (relax_sections): Delete.
322 (lang_relax_sections): New function.
323 (lang_process): Don't relax directly from here.
324 * emultempl/alphaelf.em (alpha_finish): Call finish_default.
325 * emultempl/armelf.em (arm_elf_after_allocation): Delete. Move body..
326 (gld${EMULATION_NAME}_finish): ..to here. Move existing code..
327 (gld${EMULATION_NAME}_after_allocation): ..to here. New function.
328 (LDEMUL_AFTER_ALLOCATION): Update.
329 * emultempl/avrelf.em (avr_elf_finish, LDEMUL_FINISH): Delete.
330 (avr_elf_after_allocation): New function.
331 (LDEMUL_AFTER_ALLOCATION): Define.
332 * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Call
333 lang_relax_sections.
334 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Delete. Move..
335 (gld${EMULATION_NAME}_after_allocation): ..code to here. New function.
336 (LDEMUL_AFTER_ALLOCATION, LDEMUL_FINISH): Update.
337 * emultempl/genelf.em (gld${EMULATION_NAME}_finish): Delete. Move..
338 (gld${EMULATION_NAME}_after_allocation): ..code to here. New function.
339 (LDEMUL_FINISH): Delete.
340 (LDEMUL_AFTER_ALLOCATION): Define.
341 * emultempl/hppaelf.em (gld${EMULATION_NAME}_finish): Delete. Move..
342 (gld${EMULATION_NAME}_after_allocation): ..to here. New function.
343 (LDEMUL_FINISH): Delete.
344 (LDEMUL_AFTER_ALLOCATION): Define.
345 * emultempl/m68hc1xelf.em (m68hc11elf_finish): Delete. Move..
346 (m68hc11elf_after_allocation): ..to here. New function.
347 (LDEMUL_FINISH): Delete.
348 (LDEMUL_AFTER_ALLOCATION): Define.
349 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
350 gld${EMULATION_NAME}_after_allocation.
351 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Call
352 gld${EMULATION_NAME}_after_allocation.
353 * emultempl/mmo.em (mmo_finish): Delete. Move body..
354 (gld${EMULATION_NAME}_after_allocation): ..to here. New function.
355 (LDEMUL_FINISH): Define.
356 * emultempl/ppc64elf.em (ppc_layout_sections_again): Set elf_gp.
357 (gld${EMULATION_NAME}_finish): Move code sizing sections..
358 (gld${EMULATION_NAME}_after_allocation): ..to here.
359 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
360 Call gld${EMULATION_NAME}_after_allocation.
361 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Delete
362 bfd_elf_discard_info and map_segments call.
363
364 2009-08-06 Michael Eager <eager@eagercon.com>
365
366 * Makefile.am: Add eelf32mb_linux.o, eelf32microblaze.o to
367 ALL_EMULATIONS, targets.
368 * Makefile.in: Regenerate.
369 * configure.tgt: Add microblaze*-linux*, microblaze* targets.
370 * emulparams/elf32mb_linux.sh: New.
371 * emulparams/elf32microblaze.sh. New.
372 * scripttempl/elfmicroblaze.sc: New.
373
374 2009-08-05 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
375
376 * emulparams/elf32_spu.sh (OTHER_READONLY_SECTIONS): Add .fixup
377 section and __fixup_start symbol.
378 * emultempl/spuelf.em (params): Initialize emit_fixups member.
379 (spu_before_allocation): Call spu_elf_size_sections.
380 (OPTION_SPU_EMIT_FIXUPS): Define.
381 (PARSE_AND_LIST_LONGOPTS): Add --emit-fixups.
382 (PARSE_AND_LIST_ARGS_CASES): Handle --emit-fixups.
383 * ld.texinfo (--emit-fixups): Document.
384
385 2009-08-04 Alan Modra <amodra@bigpond.net.au>
386
387 PR 10474
388 * emultempl/ppc32elf.em (ppc_before_allocation): Test rawsize,
389 not size, after lang_reset_memory_regions.
390
391 2009-07-30 Alan Modra <amodra@bigpond.net.au>
392
393 * emulparams/elf32ppc.sh (PLT): Don't include ".iplt".
394 * emulparams/elf_i386.sh (IREL_IN_PLT): Define.
395 * emulparams/elf_x86_64.sh (IREL_IN_PLT): Define.
396 * scripttempl/elf.sc: Create separate .iplt and .rela.iplt sections
397 when !IREL_IN_PLT.
398
399 2009-07-29 Hans-Peter Nilsson <hp@bitrange.com>
400
401 * scripttempl/mmo.sc: For relocateable links, set $OUTPUT_FORMAT to
402 the new $RELOCATEABLE_OUTPUT_FORMAT, if set.
403 (OUTPUT_FORMAT): Use the variable $OUTPUT_FORMAT.
404 (ENTRY): Don't emit for relocateable links.
405 (/DISCARD/): Don't discard .gnu.warning.* for relocateable links.
406 * emulparams/mmo.sh (RELOCATEABLE_OUTPUT_FORMAT): Set, to
407 elf64-mmix.
408 * emulparams/elf64mmix.sh (OTHER_TEXT_SECTIONS): Empty, don't
409 provide "Main" or set "_start.", for relocateable links.
410
411 2009-07-27 Nick Clifton <nickc@redhat.com>
412
413 * (po/fi.po): Updated Finnish translation.
414
415 2009-07-25 H.J. Lu <hongjiu.lu@intel.com>
416
417 * configure.tgt (targ64_extra_emuls): Add elf_l1om if elf_x86_64
418 is supported. Add elf_l1om_fbsd if elf_x86_64_fbsd is supported.
419 (targ_extra_emuls): Likewise.
420
421 * Makefile.am (ALL_64_EMULATIONS): Add eelf_l1om.o and
422 eelf_l1om_fbsd.o
423 (eelf_l1om.c): New.
424 (eelf_l1om_fbsd.c): Likewise.
425 * Makefile.in: Regenerated.
426
427 * emulparams/elf_l1om.sh: New.
428 * emulparams/elf_l1om_fbsd.sh: Likewise.
429
430 2009-07-23 Ulrich Drepper <drepper@redhat.com>
431
432 * NEWS: Mention the linker's support for symbols with a binding of
433 STB_GNU_UNIQUE.
434
435 2009-07-22 H.J. Lu <hongjiu.lu@intel.com>
436
437 PR ld/10429
438 * ldlang.c (insert_os_after): Tie assignments to non-alloc
439 output sections if there is no-input section.
440
441 2009-07-11 Alan Modra <amodra@bigpond.net.au>
442
443 * ldlang.c (insert_os_after): Don't tie assignments to non-alloc
444 output sections.
445
446 2009-07-10 Alan Modra <amodra@bigpond.net.au>
447
448 * emultempl/ppc32elf.em (ppc_before_allocation): Turn on
449 linker relaxation if it might be necessary.
450
451 2009-07-10 Alan Modra <amodra@bigpond.net.au>
452
453 * emulparams/elf32ppc.sh (GOTPLT, PLT): Handle .iplt.
454
455 2009-07-06 Matthias Klose <doko@ubuntu.com>
456
457 * ld.texinfo: Fix typo.
458
459 2009-07-03 Tristan Gingold <gingold@adacore.com>
460
461 * scripttempl/pep.sc: Put .eh_frame in its own section.
462 * scripttempl/pe.sc: Ditto.
463
464 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
465
466 * scripttempl/pe.sc (.debug_pubtypes): Added section rule.
467 * scripttempl/pep.sc: Likewise.
468
469 2009-06-25 Tristan Gingold <gingold@adacore.com>
470
471 * ldlang.c (print_input_section): Add is_discarded parameter. Adjust
472 prototype.
473 (lang_map): Print the size of discarded sections.
474 (print_statement): Adjust call to print_input_section.
475
476 2009-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
477
478 Merge cegcc and mingw32ce target name changes from CeGCC project:
479
480 2008-09-24 Pedro Alves <pedroalves@users.sourceforge.net>
481
482 * configure.tgt (arm*-*-cegcc*): Set LIB_PATH to
483 ${tooldir}/lib/w32api.
484
485 2007-12-25 Pedro Alves <pedro_alves@portugalmail.pt>
486
487 * configure.tgt: Add arm*-*-cegcc* target.
488
489 2007-12-17 Pedro Alves <pedro_alves@portugalmail.pt>
490
491 * configure.tgt: Add arm-*-mingw32ce* target.
492
493 2009-06-10 Philip Blundell <philb@gnu.org>
494
495 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Avoid crash
496 if section has no ELF data.
497
498 2009-06-06 H.J. Lu <hongjiu.lu@intel.com>
499
500 * scripttempl/elf.sc: Add .rel.ifunc and .rela.ifunc.
501
502 2009-06-05 H.J. Lu <hongjiu.lu@intel.com>
503
504 * scripttempl/elf.sc: Remove .rel.ifunc.dyn and .rela.ifunc.dyn.
505
506 2009-06-04 Alan Modra <amodra@bigpond.net.au>
507
508 * dep-in.sed: Don't use \n in replacement part of s command.
509 * Makefile.am (DEP1): LC_ALL for uniq.
510 * Makefile.in: Regenerate.
511
512 2009-06-01 H.J. Lu <hongjiu.lu@intel.com>
513
514 * scripttempl/elf.sc (PLT): Add "*(.iplt)".
515 (GOT): Add "*(.igot.plt)a" and "*(.igot)".
516 (GOTPLT): Add "*(.igot)".
517 (__rel_iplt_start): New.
518 (__rel_iplt_end): Likewise.
519 (__rela_iplt_start): Likewise.
520 (__rela_iplt_end): Likewise.
521
522 2009-05-27 Dave Korn <dave.korn.cygwin@gmail.com>
523
524 * deffilep.y (%union): Add new string-type semantic value 'digits'.
525 (%token): Remove NUMBER as token, add DIGITS.
526 (%type): Add NUMBER as type. Add new id types anylang_id, opt_id.
527 (ALIGNCOMM): Parse an anylang_id instead of a plain ID.
528 (anylang_id): New production.
529 (opt_digits): Likewise.
530 (opt_id): Likewise.
531 (NUMBER): Likewise.
532 (def_lex): Return strings of digits in raw string form as DIGITS
533 token, instead of converting to numeric integer type.
534
535 2009-05-26 Nathan Sidwell <nathan@codesourcery.com>
536
537 * ldmain.c (main): Don't reject --relax -r.
538 * ld.texinfo (PowerPC ELF32): Document behaviour of relaxing
539 partial links.
540
541 2009-05-26 Nick Clifton <nickc@redhat.com>
542
543 * po/id.po: Updated Indonesian translation.
544 * po/ld.pot: Updated template file.
545
546 2009-05-26 Alan Modra <amodra@bigpond.net.au>
547
548 * dep-in.sed: Output one filename per line with all lines having
549 continuation backslash. Prefix first line with "A", following
550 lines with "B".
551 * Makefile.am (DEP): Don't use dep.sed here.
552 (DEP1): Run $MKDEP on single files, use dep.sed here on dependencies,
553 sort and uniq.
554 * Makefile.in: Regenerate.
555
556 2009-05-26 Alan Modra <amodra@bigpond.net.au>
557
558 * ldlang.c (lang_check_section_addresses): Ignore non-alloc sections.
559
560 2009-05-22 Julian Brown <julian@codesourcery.com>
561
562 * emultempl/armelf.em (fix_cortex_a8): New.
563 (arm_elf_before_allocation): Call bfd_elf32_arm_set_cortex_a8_fix.
564 (arm_elf_create_output_section_statements): Add fix_cortex_a8 to
565 bfd_elf32_arm_set_target_relocs.
566 (OPTION_FIX_CORTEX_A8, OPTION_NO_FIX_CORTEX_A8): New.
567 (PARSE_AND_LIST_LONGOPTS): Add [no-]fix-cortex-a8 options.
568 (PARSE_AND_LIST_OPTIONS): Add [no-]fix-cortex-a8 options.
569 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_[NO_]FIX_CORTEX_A8.
570 * ld.texinfo (--[no-]fix-cortex-a8): Briefly document new options.
571
572 2009-05-22 Nathan Sidwell <nathan@codesourcery.com>
573
574 * ldlang.c (lang_check_section_addresses): Ignore non-loadable
575 sections when checking for overlap. Clarify error message
576 concerns load address.
577
578 2009-05-22 Alan Modra <amodra@bigpond.net.au>
579
580 * Makefile.am: Run "make dep-am".
581 * Makefile.in: Regenerate.
582
583 2009-05-19 Dave Korn <dave.korn.cygwin@gmail.com>
584
585 * NEWS: Mention new feature.
586 * deffile.h (def_file_aligncomm): Add new struct definition.
587 (def_file): Add new def_file_aligncomm member.
588 * deffilep.y (%token): Add new ALIGNCOMM token.
589 (command): Add production rule for ALIGNCOMM.
590 (def_file_free): Free any chained def_file_aligncomm structs.
591 (diropts[]): Add entry for '-aligncomm' .drectve command.
592 (def_aligncomm): New grammar function.
593 * ld.texinfo: Document new feature.
594 * pe-dll.c (process_def_file): Rename from this ...
595 (process_def_file_and_drectve): ... to this, updating all callers,
596 and process any aligncomms chained to the def file after scanning
597 all .drectve sections.
598 (generate_edata): Updated to match.
599 (pe_dll_build_sections): Likewise.
600
601 2009-05-17 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
602
603 * pe-dll.c (process_def_file): Do not create empty export table.
604
605 2009-05-15 Alan Modra <amodra@bigpond.net.au>
606
607 * ldlang.c (lang_output_section_statement_lookup): Add function
608 comment. Make "name" non-const. Ensure duplicate entries use
609 the same string, allowing simple comparison in hash bucket loop.
610 Tweak constraint check.
611 (next_matching_output_section_statement): New function.
612 * ldlang.h (lang_output_section_statement_lookup): Update.
613 (next_matching_output_section_statement): Declare.
614 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
615 combine orphan sections when input sections flags differ in
616 alloc or load.
617 * emultempl/pe.em: Formatting throughout.
618 (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
619 * emultempl/pep.em: Formatting throughout.
620 (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
621
622 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
623
624 * emultempl/spuelf.em (PARSE_AND_LIST_ARGS_CASES): Always use
625 compact stubs with software i-cache.
626
627 2009-05-14 Alan Modra <amodra@bigpond.net.au>
628
629 * emultempl/spuelf.em (spu_before_allocation): Call
630 spu_elf_place_overlay_data.
631
632 2009-05-14 Alan Modra <amodra@bigpond.net.au>
633
634 * ldlang.c (lang_insert_orphan): Add __start_<section> symbol
635 assignment inside output section statement. Ensure only one
636 set of symbols per output section.
637 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add non-
638 dollar sections before dollar sections. Correct add_child
639 list insertion.
640 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
641
642 2009-05-05 Paul Brook <paul@codesourcery.com>
643
644 * emultempl/armelf.em (compare_output_sec_vma): New function.
645 (gld${EMULATION_NAME}_finish): Add exidx munging code.
646
647 2009-05-05 Anatoly Sokolov <aesok@post.ru>
648
649 * scripttempl/avr.sc (MEMORY): Use DATA_ORIGIN.
650 * emulparams/avr1.sh (DATA_ORIGIN): Add.
651 * emulparams/avr2.sh (DATA_ORIGIN): Add.
652 * emulparams/avr25.sh (DATA_ORIGIN): Add.
653 * emulparams/avr3.sh (DATA_ORIGIN): Add.
654 * emulparams/avr31.sh (DATA_ORIGIN): Add.
655 * emulparams/avr35.sh (DATA_ORIGIN): Add.
656 * emulparams/avr4.sh (DATA_ORIGIN): Add.
657 * emulparams/avr5.sh (DATA_ORIGIN): Add.
658 * emulparams/avr51.sh (DATA_ORIGIN): Add.
659 (DATA_LENGTH): Update.
660 * emulparams/avr6.sh (DATA_ORIGIN): Add.
661 (DATA_LENGTH): Update.
662
663 2009-05-04 Dave Korn <dave.korn.cygwin@gmail.com>
664
665 * NEWS: Mention new feature.
666 * ld.texinfo (--version-script): Document extent of PE support.
667 (WIN32): Mention --version-script. Extend auto-export description.
668 * pe-dll.c (process_def_file): Use version script info to filter
669 symbols from auto-export.
670 * testsuite/ld-pe/vers-script-1.d: New file.
671 * testsuite/ld-pe/vers-script-2.d: New file.
672 * testsuite/ld-pe/vers-script-3.d: New file.
673 * testsuite/ld-pe/vers-script-4.d: New file.
674 * testsuite/ld-pe/vers-script-1.ver: New file.
675 * testsuite/ld-pe/vers-script-2.ver: New file.
676 * testsuite/ld-pe/vers-script-3.ver: New file.
677 * testsuite/ld-pe/vers-script-4.ver: New file.
678 * testsuite/ld-pe/vers-script-dll.c: New file.
679 * testsuite/ld-pe/vers-script.exp: New test script.
680
681 2009-05-01 Nathan Sidwell <nathan@codesourcery.com>
682
683 * emulparams/vxworks.sh (TEXT_START_ADDR): Override.
684
685 2009-04-30 Nick Clifton <nickc@redhat.com>
686
687 * NEWS: Mention support for IFUNC symbols.
688
689 2009-04-29 Anthony Green <green@moxielogic.com>
690
691 * emulparams/elf32moxie.sh (STACK_ADDR): Move default stack
692 position out to accommodate larger programs.
693
694 2009-04-29 Chris Demetriou <cgd@google.com>
695
696 * lexsup.c (option_values): Add OPTION_NO_EXPORT_DYNAMIC.
697 (ld_options): Likewise.
698 (parse_args): Likewise.
699 * ld.texinfo: Document --no-export-dynamic.
700 * NEWS: Mention --no-export-dynamic.
701
702 2009-04-29 Alan Modra <amodra@bigpond.net.au>
703
704 * deffilep.y (STACKSIZE_K): Rename from STACKSIZE.
705
706 2009-04-25 Alan Modra <amodra@bigpond.net.au>
707
708 PR 10061
709 * genscripts.sh: Don't pass $EMULATION_NAME as $CUSTOMIZER_SCRIPT
710 param.
711
712 2009-04-21 Daniel Jacobowitz <dan@codesourcery.com>
713
714 * emultempl/armelf.em (bfd_for_interwork, arm_elf_after_open)
715 (arm_elf_set_bfd_for_interworking): Delete.
716 (arm_elf_before_allocation): Do not set the interworking BFD.
717 Move allocation inside not-dynamic block.
718 (arm_elf_create_output_section_statements): Create glue sections
719 and set the interworking BFD here.
720 (LDEMUL_AFTER_OPEN): Delete.
721
722 2009-04-16 Richard Sandiford <r.sandiford@uk.ibm.com>
723
724 * ldlang.c (lang_one_common): Use bfd_define_common_symbol.
725
726 2009-04-15 Anthony Green <green@moxielogic.com>
727
728 * configure.tgt: Add moxie support.
729 * Makefile.am: Add moxie files.
730 * Makefile.in: Rebuilt.
731 * emulparams/elf32moxie.sh: New file.
732 * scripttempl/moxie.sc: New file.
733
734 2009-04-15 Kazu Hirata <kazu@codesourcery.com>
735
736 * ldlang.c: Do not include limits.h.
737
738 2009-04-14 Alan Modra <amodra@bigpond.net.au>
739
740 PR ld/10047
741 * ldfile.c (find_scripts_dir): Use make_relative_prefix to find
742 ldscripts in build tree. Don't repeat search for ../lib/ldscripts.
743
744 2009-04-13 H.J. Lu <hongjiu.lu@intel.com>
745
746 * ldfile.c (ldfile_find_command_file): Revert the last change.
747
748 2009-04-11 H.J. Lu <hongjiu.lu@intel.com>
749
750 PR ld/10047
751 * ldfile.c (ldfile_find_command_file): First try raw name.
752
753 2009-04-09 Nick Clifton <nickc@redhat.com>
754
755 PR 9824
756 * ld.texinfo (Output Section Constraint): New node. Documents the
757 ONLY_IF_RO and ONLY_IF_RW constraints.
758 (Symbolic Constants): New node. Documents the CONSTANT operator.
759
760 2009-04-09 Thilo Fischer <thilo.fischer@uni-muenster.de>
761
762 * emultempl/spuelf.em (embedded_spu_file): Use pex_one in place
763 of fork/execvp.
764
765 2009-04-08 H.J. Lu <hongjiu.lu@intel.com>
766
767 * lexsup.c (option_values): Add OPTION_WARN_ALTERNATE_EM.
768 (ld_options): Likewise.
769 (parse_args): Likewise.
770
771 * ld.texinfo: Document --warn-alternate-em.
772
773 * NEWS: Mention --warn-alternate-em.
774
775 2009-04-07 DJ Delorie <dj@redhat.com>
776
777 * emulparams/elf32mep.sh: Change default endian to little.
778
779 2009-04-07 Nick Clifton <nickc@redhat.com>
780
781 * ld.texinfo (Output Section Address): Note that specifying an
782 address for an output section will only change the location
783 counter if the output section is used.
784
785 2009-04-06 Kazu Hirata <kazu@codesourcery.com>
786
787 * ldfile.c (ldfile_find_command_file): Initialize result.
788
789 2009-04-06 Kazu Hirata <kazu@codesourcery.com>
790
791 * ld.texinfo (-L): Mention that -L options do not affect how ld
792 searches for a linker script unless -T option is specified.
793 * ldfile.c (ldfile_find_command_file): Append the path obtained
794 from the program name to the search path instead of
795 prepending. Add a new parameter "default_only". Restrict the
796 search to the default script location if the new parameter is
797 true.
798 (ldfile_open_command_file_1): New.
799 (ldfile_open_command_file): Call ldfile_open_command_file_1.
800 (ldfile_open_default_command_file): New.
801
802 2009-04-03 Nathan Sidwell <nathan@codesourcery.com>
803
804 * ldlang.c (lang_leave_output_section_statement): Set lma_region
805 if it is not overridden and section is for the same vma region as
806 the previous section.
807
808 2009-04-02 Dave Korn <dave.korn.cygwin@gmail.com>
809
810 PR ld/6744
811 * ld.texinfo (--export-dynamic): Mention --export-all-symbols.
812 * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Issue
813 warning if --export-dynamic was passed on command-line.
814 * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse): Likewise.
815
816 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
817
818 * emultempl/aix.em (gld${EMULATION_NAME}_open_dynamic_archive): New
819 function.
820 (ld_${EMULATION_NAME}_emulation): Use it.
821
822 2009-03-20 H.J. Lu <hongjiu.lu@intel.com>
823
824 PR ld/9970
825 * ldlang.c (lang_end): Warn missing entry symbol for -pie.
826
827 2009-03-19 Alan Modra <amodra@bigpond.net.au>
828
829 * emultempl/spuelf.em (spu_before_allocation): Report errors from
830 spu_elf_find_overlays.
831
832 2009-03-18 H.J. Lu <hongjiu.lu@intel.com>
833
834 PR ld/6766
835 * lexsup.c (parse_args): Call ldlang_add_undef for -e.
836
837 2009-03-18 Alan Modra <amodra@bigpond.net.au>
838
839 * ld.h: Remove alloca handling.
840
841 2009-03-17 Alan Modra <amodra@bigpond.net.au>
842
843 * emultempl/spu_icache.S: Add new entry to dummy handler.
844 * emultempl/spu_icache.o_c: Regenerate.
845 * emultempl/spuelf.em (params): Init new field.
846 (no_overlays): New static var.
847 (spu_before_allocation): Use it.
848 (OPTION_SPU_COMPACT_STUBS): Define.
849 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add compact-stubs.
850 (PARSE_AND_LIST_ARGS_CASES): Handle compact-stubs. Adjust no-overlays
851 handling.
852
853 2009-03-17 Alan Modra <amodra@bigpond.net.au>
854
855 * configure.host (HOSTING_LIBS): Two dollars on shell variable
856 expansion to suit make.
857
858 2009-03-17 Alan Modra <amodra@bigpond.net.au>
859
860 * configure.in: Invoke ACX_PROG_CMP_IGNORE_INITIAL.
861 * Makefile.am (check-DEJAGNU): Set DO_COMPARE.
862 * aclocal.m4: Regenerate.
863 * configure: Regenerate.
864 * Makefile.in: Regenerate.
865
866 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
867
868 * emultempl/aix.em (auto_export_flags): New variable.
869 (explicit_auto_export_flags): Likewise.
870 (OPTION_EXPALL, OPTION_EXPFULL): New enum values.
871 (OPTION_NOEXPALL, OPTION_NOEXPFULL): Likewise.
872 (gld${EMULATION_NAME}_add_options): Add -bexpall, -bexpfull,
873 -bnoexpall and -bnoexpfull.
874 (gld${EMULATION_NAME}_handle_option): Handle them.
875 (gld${EMULATION_NAME}_before_allocation): Update the call to
876 bfd_size_dynamic_sections.
877
878 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
879
880 * emultempl/aix.em (gld${EMULATION_NAME}_handle_option): Make
881 -berok and -bernotok control link_info.unresolved_syms_in_objects
882 and link_info.unresolved_syms_in_shared_libs instead of
883 force_make_executable.
884
885 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
886
887 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
888 config.dynamic_link to TRUE.
889
890 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
891
892 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Mark
893 .text, .data and .bss output sections as SEC_KEEP.
894
895 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
896
897 * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
898
899 2009-03-14 Dave Korn <dave.korn.cygwin@gmail.com>
900 Danny Smith <dannysmith@users.sourceforge.net>
901
902 * emultmpl/pe.em (pe_dll_characteristics): New variable.
903 (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
904 OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
905 OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
906 New macros for options to set DllCharacteristics flag bits.
907 (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
908 nxcompat, no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
909 (init): Add DllCharacteristics field.
910 (gld_${EMULATION_NAME}_list_options): List new options.
911 (gld${EMULATION_NAME}_handle_option): Handle new options.
912 * emultmpl/pep.em (pe_dll_characteristics): New variable.
913 (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
914 OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
915 OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
916 New macros for options to set DllCharacteristics flags.
917 (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
918 nxcompat,no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
919 (init): Add DllCharacteristics field.
920 (gld_${EMULATION_NAME}_list_options): List new options.
921 (gld${EMULATION_NAME}_handle_option): Handle new options.
922 * ldtexinfo : Document dynamicbase, forceinteg, nxcompat,
923 no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
924
925 2009-03-06 Nick Clifton <nickc@redhat.com>
926
927 * po/es.po: Updated Spanish translation.
928
929 2009-03-03 Dave Korn <dave.korn.cygwin@gmail.com>
930
931 * emultempl/pe.em (debug_section_p): New bfd_map_over_sections hook.
932 (gld_${EMULATION_NAME}_after_open): Use it to iterate all sections
933 of all input BFDs, looking for debug info. Enable long section names
934 if any found.
935 * emultempl/pe.em (debug_section_p): Likewise.
936 (gld_${EMULATION_NAME}_after_open): Likewise.
937 * NEWS: Retrospectively adjust news announcement.
938 * ld.texinfo: Update documentation to mention new behaviour.
939
940 2009-03-03 Alan Modra <amodra@bigpond.net.au>
941
942 * Makefile.am: Run "make dep-am".
943 * Makefile.in: Regenerate.
944
945 2009-03-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
946
947 * ldgram.y: Add support for REGION_ALIAS operator.
948 * ldlang.c: Likewise.
949 * ldlang.h: Likewise.
950 * ldlex.l: Likewise.
951 * NEWS: Mention the new feature.
952 * ld.texinfo: Document the new feature.
953
954 2009-03-02 Qinwei <qinwei@sunnorth.com.cn>
955
956 * Makefile.am: Replace score elf emulation with score3 and score7
957 emulations.
958 * Makefile.in: Regenerate,
959 * NEWS: Mention support for Score7 architecture.
960 * configure.tgt: Add score7 emulation to score-elf target.
961 * emulparams/scoreelf.sh: Add score7 support.
962 * emultempl/scoreelf.em: Likewise.
963
964 2009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
965
966 * configure.tgt: Only use elf64hppa target emulation for hpux.
967 * emulparams/elf64hppa.sh: Don't include hppa64linux.sh.
968 (SCRIPT_NAME): Use new script elf64hppa.
969 (SCRIPT_NAME, ELFSIZE, NO_REL_RELOCS, ARCH, MACHINE, ENTRY,
970 TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT, OTHER_READONLY_SECTIONS,
971 OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS, OTHER_GOT_RELOC_SECTIONS,
972 DATA_START_SYMBOLS, OTHER_SYMBOLS, DATA_PLT, PLT_BEFORE_GOT,
973 TEXT_DYNAMIC): Define.
974 * emulparams/hppa64linux.sh: Adjust comments.
975 * scripttempl/elf64hppa.sc: New file.
976
977 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
978
979 * configure: Regenerate.
980
981 2009-02-27 Dave Korn <dave.korn.cygwin@gmail.com>
982
983 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
984 default state of auto-import flag based on $target.
985
986 2009-02-24 Joseph Myers <joseph@codesourcery.com>
987
988 * ld.texinfo (ARM): Document changed meaning of --stub-group-size.
989 * emultempl/armelf.em (hook_in_stub): Insert after the input section.
990 (elf32_arm_add_stub_section): Update comment.
991 (PARSE_AND_LIST_OPTIONS): Update help for --stub-group-size.
992
993 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
994
995 * ld.texinfo (Options): Correct typos in example. Recommend
996 using joined forms of syntax for passing options with arguments
997 from a driver.
998 (-a): Use consistent syntax for documenting option arguments.
999 Clean up indexing and markup.
1000 (-A/--architecture): Likewise.
1001 (-f/--auxiliary): Likewise.
1002 (-F/--filter): Likewise.
1003 (-fini): Likewise.
1004 (-G/--gpsize): Likewise.
1005 (-h/-soname):Likewise.
1006 (-init): Likewise.
1007 (-l/--library): Likewise.
1008 (-L/--library-path): Likewise.
1009 (-m): Likewise.
1010 (--defsym): Likewise.
1011 (-I/--dynamic-linker): Likewise.
1012 (-Map): Likewise.
1013 (--oformat): Likewise.
1014 (--retain-symbols-file): Likewise.
1015 (-rpath): Likewise.
1016 (-rpath-link): Likewise.
1017 (--sort-common): Likewise.
1018 (--sort-section): Likewise.
1019 (--split-by-file): Likewise.
1020 (--split-by-reloc): Likewise.
1021 (--sysroot): Likewise.
1022 (--section-start): Likewise.
1023 (-Tbss, -Tdata, -Ttext): Likewise.
1024 (-Ttext-segment): Likewise.
1025 (--version-script): Likewise.
1026 (--wrap): Likewise.
1027
1028 2009-02-18 Dave Korn <dave.korn.cygwin@gmail.com>
1029
1030 * ld.texinfo: Update to mention long section name options.
1031 * NEWS: Mention new behaviour and command-line options.
1032 * pe-dll.c (pe_use_coff_long_section_names): New global variable.
1033 (pe_output_file_set_long_section_names): New function.
1034 (pe_dll_build_sections): Call it on output BFDs.
1035 (pe_exe_build_sections): Likewise.
1036 (pe_dll_fill_sections): Likewise.
1037 (pe_exe_fill_sections): Likewise.
1038 * pe-dll.h (pe_use_coff_long_section_names): Declare extern.
1039 (pe_output_file_set_long_section_names): Add prototype.
1040 * pep-dll.c (pe_use_coff_long_section_names): Define pep_ alias.
1041 (pe_output_file_set_long_section_names): Likewise.
1042 * pep-dll.h (pep_use_coff_long_section_names): Declare extern.
1043 (pep_output_file_set_long_section_names): Add prototype.
1044 * pe.em (OPTION_ENABLE_LONG_SECTION_NAMES): New getopt value macro.
1045 (OPTION_DISABLE_LONG_SECTION_NAMES): Likewise.
1046 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
1047 (gld_${EMULATION_NAME}_list_options): Describe them.
1048 (gld${EMULATION_NAME}_handle_option): Set or clear global
1049 pe_use_coff_long_section_names flag when options recognised.
1050 (gld_${EMULATION_NAME}_after_open): En/disable long section names
1051 for main output bfd by calling pe_output_file_set_long_section_names.
1052 * pep.em (enum options): Extend enum with new getopt option values.
1053 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
1054 (gld_${EMULATION_NAME}_list_options): Describe them.
1055 (gld${EMULATION_NAME}_handle_option): Set or clear global
1056 pe_use_coff_long_section_names flag when options recognised.
1057 (gld_${EMULATION_NAME}_after_open): En/disable long section names
1058 for main output bfd by calling pep_output_file_set_long_section_names.
1059
1060 2009-02-16 Dave Korn <dave.korn.cygwin@gmail.com>
1061
1062 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't emit
1063 inadvertent .reloc sections caused by refactoring accident.
1064
1065 2009-02-16 Alan Modra <amodra@bigpond.net.au>
1066
1067 * ldlang.c (process_insert_statements): ASSERT that output section
1068 statements are in order.
1069
1070 2009-02-16 Alan Modra <amodra@bigpond.net.au>
1071
1072 * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
1073 (stat_save, stat_save_ptr): New variables.
1074 (lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
1075 (load_symbols): Likewise. Delete dead "bad_load" code.
1076 (open_input_bfds): Warn on script containing output sections.
1077 (lang_enter_output_section_statement): Use push_stat_ptr.
1078 (lang_enter_group): Likewise.
1079 (lang_leave_output_section_statement): Use pop_stat_ptr.
1080 (lang_leave_group): Likewise.
1081 * ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
1082 * ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
1083 * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
1084 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
1085 * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
1086 * emultempl/spuelf.em (spu_place_special_section): Likewise.
1087 * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
1088
1089 2009-02-09 Nathan Sidwell <nathan@codesourcery.com>
1090
1091 Missing piece of 2009-01-26 commit
1092 * ldlang.c (lang_process): Don't consider relocatable flag when
1093 checking for overlap.
1094
1095 2009-02-05 Joseph Myers <joseph@codesourcery.com>
1096
1097 * emulparams/m68kelf.sh: Add newline at end of file.
1098
1099 2009-02-04 Nick Clifton <nickc@redhat.com>
1100
1101 PR 9805
1102 * ld.texinfo (--allow-shlib-undefined): Correct description of
1103 default settings and tidy up the rest of the entry.
1104
1105 2009-02-04 Alan Modra <amodra@bigpond.net.au>
1106
1107 * emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.*
1108 during relocatable link.
1109
1110 2009-02-03 Nick Clifton <nickc@redhat.com>
1111
1112 PR 9797
1113 * ld.texinfo (Constants): Document the base-encoding suffixes
1114 supported in linker scripts.
1115
1116 2009-02-03 Alan Modra <amodra@bigpond.net.au>
1117
1118 * NEWS: Mention --as-needed change.
1119
1120 2009-02-03 Carlos O'Donell <carlos@codesourcery.com>
1121
1122 * configure.in: AC_SUBST pdfdir.
1123 * Makefile.am: Add install-pdf, install-pdf-am,
1124 and install-pdf-recursive targets. Define pdf__strip_dir.
1125 * po/Make-in: Add install-pdf target.
1126 * configure: Regenerate.
1127 * Makefile.in: Regenerate.
1128
1129 2009-01-31 Alan Modra <amodra@bigpond.net.au>
1130
1131 * ld.texinfo (--as-needed): Update.
1132
1133 2009-01-29 Andrew Jenner <andrew@codesourcery.com>
1134
1135 * emultempl/armelf.em: Correct formatting of help text for
1136 --no-enum-size-warning option.
1137
1138 2009-01-26 Nathan Sidwell <nathan@codesourcery.com>
1139
1140 * lexsup.c (parse_args): Set check_section_addresses to 1 or 0.
1141 * ld.h (args_type): Make check_section_addresses a char.
1142 * ldmain.c (main): Default check_section_addresses to -1. Check it
1143 for relocatable links.
1144 * ld.texinfo (--check-sections): Update documentation.
1145
1146 2009-01-26 Kai Tietz <kai.tietz@onevision.com>
1147
1148 * pe-dll.c (tmp_seq2): New static variable.
1149 (make_singleton_name_imp): New.
1150 (make_import_fixup_entry): Use for v2 the _imp_<name> symbol and
1151 avoid duplicate import table generation for same symbol.
1152 (pe_create_runtime_relocator_reference): Make reference for
1153 64-bit 8 bytes.
1154
1155 2009-01-21 Alan Modra <amodra@bigpond.net.au>
1156
1157 * emultempl/spuelf.em (params): Init new field.
1158 (OPTION_SPU_NON_IA_TEXT): Define.
1159 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --non-ia-text.
1160 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_SPU_NON_IA_TEXT.
1161
1162 2009-01-16 H.J. Lu <hongjiu.lu@intel.com>
1163
1164 * lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT.
1165 (ld_options): Add -Ttext-segment.
1166 (parse_args): Handle OPTION_TTEXT_SEGMENT.
1167
1168 * ld.texinfo: Document -Ttext-segment.
1169
1170 * NEWS: Mention -Ttext-segment.
1171
1172 * scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START.
1173 (SHLIB_TEXT_START_ADDR): Likewise.
1174
1175 2009-01-13 Alan Modra <amodra@bigpond.net.au>
1176
1177 * emultempl/spu_icache.o_c: Regenerate.
1178
1179 2009-01-12 Alan Modra <amodra@bigpond.net.au>
1180
1181 * emultempl/spuelf.em (params): Init new fields.
1182 (num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars.
1183 (spu_place_special_section): Adjust placement for soft-icache. Pad
1184 soft-icache section to a fixed size. Clear addr_tree.
1185 (spu_elf_load_ovl_mgr): Support soft-icache. Map overlay manager
1186 sections a little more intelligently.
1187 (gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs.
1188 (OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS.
1189 (OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define.
1190 (OPTION_SPU_LRLIVE): Define.
1191 (PARSE_AND_LIST_LONGOPTS): Add new soft-icache options.
1192 (PARSE_AND_LIST_OPTIONS): Likewise.
1193 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1194 * emultempl/spu_icache.S: Dummy file.
1195 * emultempl/spu_icache.o_c: Regenerate.
1196 * Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c.
1197 (spu_icache.o_c): Add rule to build.
1198 (CLEANFILES): Zap temp files.
1199 (EXTRA_DIST): Add spu_icache.o_c.
1200 * Makefile.in: Regenerate.
1201
1202 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
1203
1204 * pe.em (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New.
1205 (gld..._add_options): Add new option
1206 --use-nul-prefixed-import-tables.
1207 (gld..._handle_option): Likewise.
1208 * pep.em: Same as for pe.em.
1209 * ld.texinfo: Add new option documentation for
1210 --use-nul-prefixed-import-tables.
1211 * pe-dll.c (pe_use_nul_prefixed_import_tables): New.
1212 (make_head): Make prefix leading zero prefix element for
1213 idata$4 and idata$5 dependent to new flag.
1214 (make_import_fixup_entry): Remove idata4/5 prefix.
1215 * pe-dll.h (pe_use_nul_prefixed_import_tables): New.
1216 * pep-dll.c (pe_use_nul_prefixed_import_tables): New.
1217 * pep-dll.h (pep_use_nul_prefixed_import_tables): New.
1218 * NEWS: Add new option.
1219
1220 2009-01-05 Kai Tietz <kai.tietz@onevision.com>
1221
1222 * emultempl/pe.em: Prefix dollar characters to be outputed in
1223 generated C file.
1224 * emultempl/pep.em: Likewise.
1225
1226 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
1227
1228 * NEWS: Mention new feature --exclude-modules-for-implib.
1229 * ld.texinfo: Document new --exclude-modules-for-implib option.
1230 * pe-dll.c (exclude_list_struct): Change type member from int to
1231 new enumeration exclude_type.
1232 (pe_dll_add_excludes): Accept exclude_type instead of int param.
1233 (auto_export): Replace magic constants by exclude_type values and
1234 handle new choice EXCLUDEFORIMPLIB.
1235 (pe_dll_generate_implib): Accept a pointer to the link_info and
1236 iterate all input BFDs looking for EXCLUDEFORIMPLIB modules; re-open
1237 fresh BFDs for any found and link into import lib archive chain.
1238 * pe-dll.h (exclude_type): Add new enumerated type to replace magic
1239 constants previously used for exclude_list_struct type member.
1240 (pe_dll_add_excludes, pe_dll_generate_implib): Update prototypes.
1241 * pep-dll.h (exclude_type, pe_dll_add_excludes,
1242 pe_dll_generate_implib): Likewise to all the above.
1243 * emultempl/pe.em (OPTION_EXCLUDE_MODULES_FOR_IMPLIB): Define new
1244 getopts long option code for new --exclude-modules-for-implib option.
1245 (gld${EMULATION_NAME}_add_options): Add new entry to xtra_long[].
1246 (gld_${EMULATION_NAME}_list_options): List usage for it.
1247 (gld${EMULATION_NAME}_handle_option): Use exclude_type enumerated
1248 values when calling pe_dll_add_excludes, and handle EXCLUDEFORIMPLIB.
1249 (gld_${EMULATION_NAME}_finish): Pass pointer to link_info when
1250 calling pe_dll_generate_implib.
1251 * emultempl/pep.em (options): Define new enumerated value for getopts
1252 long option code for new --exclude-modules-for-implib option.
1253 (gld${EMULATION_NAME}_add_options, gld_${EMULATION_NAME}_list_options,
1254 gld${EMULATION_NAME}_handle_option, gld_${EMULATION_NAME}_finish):
1255 Again, likewise to all the above.
1256
1257 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
1258
1259 * pe-dll.c (autofilter_liblist): Add entry for shared libgcc.
1260 (libnamencmp): New function.
1261 (auto_export): Use it in place of strncmp when filtering libraries.
1262
1263 For older changes see ChangeLog-2008
1264 \f
1265 Local Variables:
1266 mode: change-log
1267 left-margin: 8
1268 fill-column: 74
1269 version-control: never
1270 End: