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