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