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