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