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