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