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