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