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