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