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