PR binutils/12058
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
ace9d866
AM
12010-10-28 Alan Modra <amodra@gmail.com>
2
3 * ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR.
4
9160ea82
AM
52010-10-28 Matthias Klose <doko@ubuntu.com>
6
7 * ld.texinfo: Add directory section for info document.
8 * ldint.texinfo: Likewise.
9
71755fdf
AM
102010-10-28 Alan Modra <amodra@gmail.com>
11
12 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): For
13 --no-undefined-version, don't report dot sym versions added by ld.
14
24898b70
AM
152010-10-28 Alan Modra <amodra@gmail.com>
16
17 * ldlang.h (ldlang_add_undef): Add cmdline param.
18 * ldlang.c (undef_from_cmdline): New var.
19 (ldlang_add_undef): Add cmdline param. Set undef_from_cmdline.
20 (lang_end): Really require -e or -u from command line on
21 relocatable --gc-sections.
22 * ldemul.c (after_parse_default): Adjust ldlang_add_undef call.
23 * ldgram.y (extern_name_list_body): Likewise.
24 * lexsup.c (parse_args): Likewise.
25 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
26
bc110b6e
AM
272010-10-25 Alan Modra <amodra@gmail.com>
28
29 * plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id.
30 Formatting.
31
1360ba76
RO
322010-10-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33
34 * emulparams/elf32_sparc_sol2.sh (OUTPUT_FORMAT): Set to
35 elf32-sparc-sol2.
36 * emulparams/elf64_sparc_sol2.sh (OUTPUT_FORMAT): Set to
37 elf64-sparc-sol2.
38
2b42b063
AM
392010-10-22 Alan Modra <amodra@gmail.com>
40
41 * ldwrite.c (build_link_order <lang_data_statement_enum>): Don't
42 output when section has no contents.
43 (build_link_order <lang_reloc_statement_enum>): Likewise.
44
75fa6dc1
JM
452010-10-21 Joseph Myers <joseph@codesourcery.com>
46
47 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Use
48 .c6xabi.attributes, not __TI_build_attributes.
49
7bac81d3
DK
502010-10-20 Dave Korn <dave.korn.cygwin@gmail.com>
51
52 * plugin.c (get_symbols): Check symbol type correctly.
53
3917d5d5
DK
542010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
55
56 * configure.in: If <dlfcn.h> can't be found, try for <Windows.h>
57 * configure: Regenerate.
58 * config.in: Likewise.
59 * plugin.c [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlopen): Provide
60 trival LoadLibrary-based replacement for Windows systems.
61 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise trivial
62 replacement based on GetProcAddress.
63 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise FreeLibrary.
64 * sysdep.h: Don't infer presence of <dlfcn.h> from ENABLE_PLUGINS
65 anymore, use its own guard.
66
d4cb7acd
DK
672010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
68
69 * plugin.c (add_input_file): Take copy of input string.
70 (add_input_library): Likewise.
71 (set_extra_library_path): Likewise.
72
2b42b063 732010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
5d3236ee
DK
74
75 Apply LD plugin patch series (part 6/6).
76 * ldlang.c (load_symbols): Handle bfd subsitution when calling the
77 add_archive_element callback.
78 * ldmain.c (add_archive_element)[ENABLE_PLUGINS]: Offer the archive
79 member to the plugins and if claimed set "subsbfd" output parameter to
80 point to the dummy IR-only BFD.
81
2b42b063 822010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
5d3236ee
DK
83
84 Apply LD plugin patch series (part 5/6).
85 * plugin.c (asymbol_from_plugin_symbol): If the bfd is an ELF bfd,
86 find the elf symbol data and set the visibility in the st_other field.
87
2b42b063 882010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
5d3236ee
DK
89
90 Apply LD plugin patch series (part 4/6).
91 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Move invocation of
92 plugin_call_all_symbols_read to before setting of gc_sym_list, and
93 open any new input files that may have been added during it.
94 * ldmain.c (multiple_definition)[ENABLE_PLUGINS]: Call out to
95 plugin_multiple_definition and let it have first say over what to do
96 with the clashing definitions.
97 * plugin.c (no_more_claiming): New boolean variable.
98 (plugin_cached_allow_multiple_defs): Likewise.
99 (add_input_file): Implement.
100 (add_input_library): Likewise.
101 (set_extra_library_path): Likewise.
102 (plugin_call_claim_file): Don't do anything when no_more_claiming set.
103 (plugin_call_all_symbols_read): Set it. Disable link info
104 "allow_multiple_definition" flag, but cache its value.
105 (plugin_multiple_definition): New function.
106 * plugin.h (plugin_multiple_definition): Add prototype.
107 * testplug.c (addfile_enum_t): New enumerated typedef.
108 (add_file_t): New struct typedef.
109 (addfiles_list): New variable.
110 (addfiles_tail_chain_ptr): Likewise.
111 (record_add_file): New function.
112 (parse_option): Parse "add:", "lib:" and "dir:" options and call it.
113 (onall_symbols_read): Iterate the list of new files, libs and dirs,
114 adding them.
115
2b42b063 1162010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
5d3236ee
DK
117
118 Apply LD plugin patch series (part 3/6).
119 * ldmain.c (notice)[ENABLE_PLUGINS]: Call plugin_notice.
120 * plugin.c (non_ironly_hash): Add new bfd hash table.
121 (plugin_load_plugins): Exit early if no plugins to load. If plugins
122 do load successfully, set notice_all flag in link info.
123 (get_symbols): Implement.
124 (plugin_load_plugins): Exit early if no plugins to load, else after
125 loading plugins successfully enable notice_all mode.
126 (init_non_ironly_hash): Lazily init non_ironly_hash table.
127 (plugin_notice): Record symbols referenced from non-IR files in the
128 non_ironly_hash. Suppress tracing, cref generation and nocrossrefs
129 tracking for symbols from dummy IR bfds.
130 * plugin.h: Fix formatting.
131 (plugin_notice): Add prototype.
132 * testplug.c (dumpresolutions): New global var.
133 (parse_options): Accept "dumpresolutions".
134 (onall_symbols_read): Get syms and dump resolutions if it was given.
135
2b42b063 1362010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
5d3236ee
DK
137
138 Apply LD plugin patch series (part 2/6).
139 * ldfile.c (ldfile_try_open_bfd)[ENABLE_PLUGINS]: Don't return early
140 during compat checks if they pass, instead offer any successfully
141 opened and accepted file to the plugin claim file hooks chain. Create
142 a dummy bfd to accept symbols added by the plugin, if the plugin
143 claims the file.
144 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Call plugin all symbols
145 read hook chain before ldemul_after_open.
146 * ldlang.h (struct lang_input_statement_struct): Add new single-bit
147 'claimed' flag.
148 * plugin.c (IRONLY_SUFFIX): New macro for dummy bfd file suffix.
149 (IRONLY_SUFFIX_LEN): Length of the above string.
150 (plugin_get_ir_dummy_bfd): New function to create the dummy bfd used
151 to store symbols for ir-only files.
152 (is_ir_dummy_bfd): New function to check if a bfd is ir-only.
153 (asymbol_from_plugin_symbol): New function converts symbol formats.
154 (add_symbols): Call it to convert plugin syms to bfd syms and add
155 them to the dummy bfd.
156 * plugin.h: Add missing include guards.
157 (plugin_get_ir_dummy_bfd): Add prototype.
158 (is_ir_dummy_bfd): Likewise.
159 * testplug.c (TV_MESSAGE): New helper macro.
160 (struct claim_file): New struct.
161 (claim_file_t): New typedef.
162 (tag_names[]): Make static and const.
163 (claimfiles_list): New variable.
164 (claimfiles_tail_chain_ptr): Likewise.
165 (last_claimfile): Likewise.
166 (record_claim_file): Record a file to claim on a singly-linked list.
167 (parse_symdefstr): Parse an ASCII representation of a symbol from a
168 plugin option into the fields of a struct ld_plugin_symbol.
169 (record_claimed_file_symbol): Use it to parse plugin option for
170 adding a symbol.
171 (parse_option): Parse claim file and add symbol options.
172 (dump_tv_tag): Use TV_MESSAGE.
173 (onload): Likewise.
174 (onclaim_file): Make static. Use TV_MESSAGE. Scan list of files to
175 claim and claim this file if required, adding any symbols specified.
176 (onall_symbols_read): Make static and use TV_MESSAGE.
177 (oncleanup): Likewise.
178
2b42b063 1792010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
5d3236ee
DK
180
181 Apply LD plugin patch series (part 1/6).
182 * configure.in: Add AC_CHECKs for file io and dlfcn headers and
183 functions and AC_SEARCH for -ldl.
184 (enable_plugins): New shell variable set if above tests find dlopen
185 functionality.
186 (ENABLE_PLUGINS): Add related automake conditional.
187 * configure: Regenerate.
188 * config.in: Likewise.
189 * Makefile.am (PLUGIN_C): Declare plugin C source file, conditional
190 on ENABLE_PLUGINS being defined.
191 (PLUGIN_H): Likewise for header file.
192 (PLUGIN_OBJECT): Likewise for object file.
193 (PLUGIN_CFLAGS): Likewise -D flag required to compile plugin support.
194 (AM_CPPFLAGS): Use PLUGIN_CFLAGS.
195 (CFILES): Use PLUGIN_C.
196 (HFILES): Use PLUGIN_H.
197 (OFILES): Use PLUGIN_OBJECT.
198 (ld_new_SOURCES): Use PLUGIN_C.
199 (noinst_LTLIBRARIES)[ENABLE_PLUGINS]: Declare test plugin.
200 (libldtestplug_la_SOURCES)[ENABLE_PLUGINS]: Add automake definition
201 for test plugin.
202 (libldtestplug_la_CFLAGS)[ENABLE_PLUGINS]: Likewise.
203 (libldtestplug_la_LDFLAGS)[ENABLE_PLUGINS]: Likewise.
204 * Makefile.in: Regenerate.
205 * sysdep.h: Include stdarg.h, unistd.h and one of fcntl.h or
206 sys/file.h where available. Include dlfcn.h when ENABLE_PLUGINS.
207 (O_RDONLY): Supply default definition likewise to bfd's sysdep.h
208 (O_WRONLY): Likewise.
209 (O_RDWR): Likewise.
210 (O_ACCMODE): Likewise.
211 (O_BINARY): Likewise.
212 (SEEK_SET): Likewise.
213 (SEEK_CUR): Likewise.
214 (SEEK_END): Likewise.
215 * ldmisc.c (vfinfo): Make non-static. Add %p format char.
216 * ldmisc.h (vfinfo): Declare extern prototype.
217 * lexsup.c (enum option_values)[ENABLE_PLUGINS]: Add new entries for
218 OPTION_PLUGIN and OPTION_PLUGIN_OPT.
219 (ld_options[])[ENABLE_PLUGINS]: Add option data for the above two.
220 (parse_args)[ENABLE_PLUGINS]: Handle them, and load all plugins once
221 option parsing is complete.
222 * ldmain.c (main)[ENABLE_PLUGINS]: Call plugin cleanup hooks just
223 after lang_finish.
224 * plugin.c: New source file.
225 * plugin.h: Likewise new header.
226 * testplug.c: New source file.
227
18a1a992
RO
2282010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
229
230 * emultempl/solaris2.em (elf_solaris2_before_allocation): Renamed
231 basever_syms to global_syms.
232 Emit global_syms into .dynamic section for all executables and
233 shared objects.
234 (elf_solaris2_after_allocation): New function.
235 (LDEMUL_AFTER_ALLOCATION): Use it.
236 * emulparams/solaris2.sh: New file.
237 * emulparams/elf32_sparc_sol2.sh: Use it.
238 * emulparams/elf64_sparc_sol2.sh: Likewise.
239 * emulparams/elf_i386_sol2.sh: Likewise.
240 * emulparams/elf_x86_64_sol2.sh: Likewise.
241 * Makefile.am (eelf32_sparc_sol2.c): Depend on
242 $(srcdir)/emulparams/solaris2.sh.
243 (eelf64_sparc_sol2.c): Likewise.
244 (eelf_x86_64_sol2.c): Likewise.
245 (eelf_i386_sol2.c): Likewise.
246 * Makefile.in: Regenerate.
247
ea5cae92
NC
2482010-10-06 Nick Clifton <nickc@redhat.com>
249
250 * ld.texinfo: Update description of computation of VMA and LMA
251 addresses for output sections.
252
9034a328
RW
2532010-10-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
254
4560bc04
RW
255 * Makefile.am (ALL_64_EMULATIONS): Fix typo in last commit.
256 * Makefile.in: Regenerate.
257
9034a328
RW
258 * Makefile.am (ALL_EMULATIONS): Rewrite in terms of ...
259 (ALL_EMULATION_SOURCES): ... this new variable.
260 (ALL_64_EMULATIONS): Rewrite in terms of ...
261 (ALL_64_EMULATION_SOURCES): ... this new variable.
262 (EXTRA_ld_new_SOURCES): Rewrite in terms of the _SOURCES
263 variables.
264 (eelf32microblaze.c): Fix indentation.
265 * Makefile.in: Regenerate.
266
d4730f92
BS
2672010-10-04 Bernd Schmidt <bernds@codesourcery.com>
268
269 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use
270 _bfd_elf_single_rel_hdr.
271
abf4be64
AM
2722010-10-01 Alan Modra <amodra@gmail.com>
273
274 PR ld/12066
275 * ldexp.c (fold_name): Treat absolute symbols as plain numbers.
276 * ld.texinfo (Expression Section): Don't say absolute symbols
277 are addresses.
278
30920cab
AM
2792010-09-29 Alan Modra <amodra@gmail.com>
280
281 * ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
282 section for orphans handled here.
283
3cac54d2
RW
2842010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
285
286 * configure: Regenerate.
287
9396a3ce
DK
2882010-09-23 Dave Korn <dave.korn.cygwin@gmail.com>
289
290 * scripttempl/armcoff.sc: Revert 2010-09-22 change.
291
0814be7d
AM
2922010-09-23 Alan Modra <amodra@gmail.com>
293
294 * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
295 to output section on a final link.
296
d4874973
KT
2972010-09-22 Kai Tietz <kai.tietz@onevision.com>
298
e4b0fe2f
KT
299 * ldlang.c (lang_add_section): Allow for debugging
300 section to be marked as noload but to keep content.
301 (IGNORE_SECTION): Likewise.
302 (lang_check_section_addresses): Likewise.
303 * ldwrite.c (build_link_order): Likewise.
304
d4874973
KT
305 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add
306 idata to orphan set.
307 * emultempl/pep.em: Likewise.
308 * scripttempl/armcoff.sc: Separate idata
309 and add __IAT_start__ and __IAT_end__ labels.
310 * scripttempl/pe.sc: Likewise.
311 * scripttempl/pep.sc: Likewise.
312
d9b807ab
DM
3132010-09-20 David S. Miller <davem@davemloft.net>
314
315 * emulparams/elf32_sparc.sh: Set NOP to 0x01000000
316
2e76e85a
AM
3172010-09-16 Alan Modra <amodra@gmail.com>
318
319 * ld.texinfo (NOLOAD): Do not erroneously state that contents will
320 appear in output file.
321 * ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload
322 unless SEC_COFF_SHARED_LIBRARY.
323 (map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload
324 output sections.
325 (lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding
326 to update dot in region. Ditto when setting SEC_ALLOC if dot
327 advanced due to assignment.
328 * ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD.
329
2d7f4929
KT
3302010-09-15 Kai Tietz <kai.tietz@onevision.com>
331
d3fe237d
KT
332 * scripttempl/pep.sc: Add .xdata segment and
333 put into .pdata all segments beginning with .pdata.
2d7f4929 334
8658f989
AM
3352010-09-10 Alan Modra <amodra@gmail.com>
336
337 PR ld/11931
338 * ldlang.h (lang_for_each_statement_worker): Declare.
339 * ldlang.c (lang_for_each_statement_worker): Make global. Don't
340 recurse into children of output_section_statement with constraint
341 set to -1.
342 (print_assignment): Handle NULL output_section->bfd_section.
343 (lang_size_sections_1): Ignore output section statement address
344 when constraint is -1.
345 * emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete.
346
75875724
TG
3472010-09-09 Tristan Gingold <gingold@adacore.com>
348
349 * NEWS: Add a entry for alpha-vms.
350
3dbcc61d
NC
3512010-09-07 Andrew Burgess <aburgess@broadcom.com>
352
353 * ldwrite.c (clone_section): Call bfd_copy_private_section_data on
354 newly cloned section.
355
c518ddd8
RH
3562010-09-02 Richard Henderson <rth@redhat.com>
357
358 * configure.tgt (x86_64-*-mingw*): Add 32-bit pe emulations too.
359
107c6e11
NC
3602010-08-31 Nick Clifton <nickc@redhat.com>
361
362 * ldlex.l (WILDCHAR): Add the caret and exclamation point
0d6cedc0 363 characters, so that they can be used inside globs.
107c6e11 364
c09e9a8c
NC
3652010-08-31 Nick Clifton <nickc@redhat.com>
366
367 * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in
368 a region's attributes.
369
6be999b8
AM
3702010-08-31 Alan Modra <amodra@gmail.com>
371
372 * scripttempl/mmo.sc: Move assignment to "Main" inside .text
373 output section statement.
374
8dd881b6
L
3752010-08-25 H.J. Lu <hongjiu.lu@intel.com>
376
377 PR ld/11946
378 * emultempl/elf32.em (_before_allocation): Check audit entry
379 only on ELF input.
380
4440bb77
L
3812010-08-22 H.J. Lu <hongjiu.lu@intel.com>
382
383 PR ld/11937
384 * emultempl/elf32.em (_after_open): Find one .eh_frame section
385 for --eh-frame-hdr.
386
a654efd6
L
3872010-08-22 H.J. Lu <hongjiu.lu@intel.com>
388
389 PR ld/11937
390 * emultempl/elf32.em (_after_open): Find an ELF input for
391 --build-id and --eh-frame-hdr.
392
d820eaae
MR
3932010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
394
395 * Makefile.am (eshlelf_fd.c): Correct the name of the tool
396 directory.
397 * Makefile.in: Regenerate.
398
c13526ca
NC
3992010-08-20 Nick Clifton <nickc@redhat.com>
400
401 * emultempl/elf32.em (_after_open): Check for get_elf_backend_data
402 returning NULL.
403
5fec8599
L
4042010-08-19 Alan Modra <amodra@gmail.com>
405
406 * NEWS: Mention change in linker script expression evaluation.
407
7542af2a
AM
4082010-08-19 Alan Modra <amodra@gmail.com>
409
410 * ld.texinfo (Expression Section): Detail expression evaluation.
411 (Builtin Functions <ADDR>): Correct.
412 (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally
413 the same as ADDR.
414 (Builtin Functions <SEGMENT_START>): Typo fix.
415 * ldexp.c (new_number): New function.
416 (make_abs, exp_get_abs_int): Cope with NULL expld.result.section.
417 (fold_unary <'~', '!', '-'>): Don't make_abs.
418 (fold_binary): Simplify result section logic. Return NULL section
419 for logical ops.
420 (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to
421 a consistent result.
422 (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs.
423 (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise.
424 (fold_name <NAME>): No need to handle absolute symbols differently
425 from relative ones.
426 (fold_name <ORIGIN>): Don't return valid result when
427 lang_first_phase_enum. Return new_rel_from_abs, not new_abs.
428 (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel.
429 (exp_fold_tree_1): Ajust for NULL expld.result.section. When assigning
430 a plain number to dot, assume the value is relative to expld.section.
431 Make terms not in an output section, absolute.
432 * ldlang.c (print_assignment): Fix style nit.
433 (lang_size_sections_1): Cope with NULL expld.result.section.
434 (lang_do_assignments_1): Likewise.
435
5942515f
AM
4362010-08-12 Alan Modra <amodra@gmail.com>
437
438 * ldexp.c (new_rel): Remove "str". Update all call sites.
439 (exp_fold_tree_1): When assigning to dot, calculate nextdot
440 using expld.result.section rather than expld.section.
441
1e0061d2
AM
4422010-08-06 Alan Modra <amodra@gmail.com>
443
444 PR ld/11887
445 * ldlang.c (lang_add_vers_depend): Don't leave version_needed
446 uninitialised.
447
ae78bbeb
AM
4482010-07-28 Alan Modra <amodra@gmail.com>
449
450 * ldexp.c (exp_print_tree): Print function-like binary nodes as
451 functions rather than in-fix operators. Use fputs and fputc
452 where appropriate.
453
1cd986c5
NC
4542010-07-23 Naveen.H.S <naveen.S@kpitcummins.com>
455 Ina Pandit <ina.pandit@kpitcummins.com>
456
457 * configure.tgt: Match all v850 targets.
458
bb1515f2
MF
4592010-07-20 Mike Frysinger <vapier@gentoo.org>
460
461 * ld.texinfo (VERSION): Remove "int" from example script and add ";".
462 Declare the default language as C.
463
f4427a75
AM
4642010-07-17 Alan Modra <amodra@gmail.com>
465
466 * ldlang.c (lang_check_section_addresses): Catch overlap for
467 sections that wrap around the address space.
468
ec51c381
NC
4692010-06-29 Nick Clifton <nickc@redhat.com>
470
471 * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
472 with the .gcc_except_table. prefix.
473
360cfc9c
AM
4742010-06-29 Alan Modra <amodra@gmail.com>
475
476 * emulparams/maxqcoff.sh: Delete file.
477 * scripttempl/maxqcoff.sc: Delete file.
478 * Makefile.am: Remove references to maxq.
479 * configure.tgt: Likewise.
480 * Makefile.in: Regenerate.
481 * configure: Regenerate.
482 * po/POTFILES.in: Regenerate.
483
c7e2358a
AM
4842010-06-27 Alan Modra <amodra@gmail.com>
485
486 * pe-dll.c (fill_edata): Avoid set but unused warning.
487 (pe_walk_relocs_of_symbol): Delete set but unused variables.
488 (generate_reloc, pe_implied_import_dll): Likewise.
489 * emultempl/aix.em (open_dynamic_archive): Likewise.
490 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
491 (xtensa_layout_wild): Likewise.
492 (xtensa_colocate_output_literals_callback): Likewise.
493
ba761f19
AM
4942010-06-25 Alan Modra <amodra@gmail.com>
495
496 * emultempl/ppc64elf.em (prelim_size_sections): New function.
497 (ppc_before_allocation): Use it. Size sections before toc edit too.
498
bded3693
AM
4992010-06-25 Alan Modra <amodra@gmail.com>
500
501 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
502
09db93a8
DS
5032010-06-20 Danny Smith <dannysmith@users.sourceforge.net>
504
505 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
bded3693
AM
506 auto-import and merge-rdata defaults same for i[3-7]86 and
507 x86_64 mingw.
508
59e6276b
JM
5092010-06-15 Joseph Myers <joseph@codesourcery.com>
510
511 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
512
75898d57
DK
5132010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
514
515 PR ld/11603
516 * pe-dll.c (process_def_file_and_drectve): Reorder check for
517 forwarded export name after check for ordinary export.
518
11dd4e37
BS
5192010-06-08 Bernd Schmidt <bernds@codesourcery.com>
520
521 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
522
9fbcbd81
NC
5232010-06-08 Nick Clifton <nickc@redhat.com>
524
525 * fdl.texi: Replace with v1.3 text.
526 * ld.texinfo: Replace abbreviated 20th century year numbers with
527 full versions.
528 * ldint.texinfo: Likewise.
529 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
530 include of the fdl.texi file.
531
46d00b8a
TG
5322010-06-01 Tristan Gingold <gingold@adacore.com>
533
534 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
535 readonly output-section. Handle LIB$INITIALIZE and sections
536 created by gcc.
537 * emultempl/vms.em (vms_place_orphan): Add comments.
538
de072cdc
NC
5392010-05-28 Nick Clifton <nickc@redhat.com>
540
541 * Makefile.am (eshlelf_fd.c): Fix typo in rule.
542 * Makefile.in: Regenerate.
543
c8ce5710
L
5442010-05-26 H.J. Lu <hongjiu.lu@intel.com>
545
546 PR ld/11628
547 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
548 multiple of maximum page size.
549
d19e70fb
NC
5502010-05-25 Nick Clifton <nickc@redhat.com>
551
552 * Makefile.am: Fix typo.
553 * Makefile.in: Regenerate.
554
8e45593f
NC
5552010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
556 Joseph Myers <joseph@codesourcery.com>
557 Andrew Stubbs <ams@codesourcery.com>
558
559 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
560 (eshelf_fd.c, eshlelf_fd.c): New rules.
561 * Makefile.in: Regenerate.
562 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
563 emulations.
564 * emulparams/shelf_fd.sh: New file.
565 * emulparams/shlelf_fd.sh: New file.
566 * emulparams/shlelf_linux.sh: Update comment.
567
52a6ecd2
NC
5682010-05-25 Jay Krell <jay.krell@cornell.edu>
569
570 PR ld/11621
571 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
572 * Makefile.in: Regenerate.
573
ca5f2203
KT
5742010-05-25 Kai Tietz <kai.tietz@onevision.com>
575
770c040b
KT
576 * deffilep.y (opt_name): Allow leading dot.
577 (dot_name): Likewise.
578 (anylang_id): Likewise.
6ec6c79c
KT
579 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
580 default auto_import.
581 (gld${EMULATION_NAME}_handle_option): Warn about v1.
582 (pep_find_data_imports): Remove superflous warnings about
583 auto-import.
584 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
585 and active pseudo-relocation-v2 rdata into data section.
ca5f2203
KT
586 * emultempl/pe.em (default_merge_rdata): New shell variable.
587 (MERGE_RDATA_V2): New macro.
588 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
589 selected script.
590
d74720d2
KT
5912010-05-15 Kai Tietz <kai.tietz@onevision.com>
592
593 * emultempl/pe.em (is_underscoring): New helper function.
594 (gld_${EMULATION_NAME}_before_parse): Replace code
595 for pe(p)_leading_underscore detection by is_underscoring.
596 (U): Likewise.
597 (GET_INIT_SYMBOL_NAME): Likewise.
598 (U_SIZE): Likewise.
599 (set_pe_name):
600 (set_entry_point):
601 (gld_${EMULATION_NAME}_set_symbols):
602 * emultempl/pep.em: Likewise.
603 * pe-dll.c (pe_detail_list): Set default
604 underscoring for x64 target.
605 (pe_dll_id_target): Add initialization of
606 pe(p)_leading_underscore.
607
1b610c93
DK
6082010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
609
610 * pe-dll.c: Removed trailing whitespaces.
611
e092cb30
AM
6122010-05-14 Alan Modra <amodra@gmail.com>
613
614 PR ld/11583
615 * ldexp.c (exp_fold_tree_1): If assignment source expression is
616 invalid, make the destination symbol undefined.
617
b804e4af
KT
6182010-05-11 Kai Tietz <kai.tietz@onevision.com>
619
620 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
621 Initialize pe(p)_leading_underscore variable.
622 (set_pe_name): Likewise.
623 * emultempl/pep.em: Likewise.
624 Additional change default to non-underscore for
625 pep_leading_underscore equal to -1.
626
6540b386
TG
6272010-05-07 Tristan Gingold <gingold@adacore.com>
628
629 * Makefile.in: Regenerate with automake 1.11.1.
630 * aclocal.m4: Ditto.
631
3e01a7fd
NC
6322010-05-05 Nick Clifton <nickc@redhat.com>
633
634 * po/es.po: Updated Spanish translation.
635
17f73277
KT
6362010-04-27 Kai Tietz <kai.tietz@onevision.com>
637
638 * pe-dll.c (_nm_-symbols): Use always underscored variant
639 for symbols.
640 (__imp_-symbols): Likewise.
641 (___imp_-symbols): Likewise.
642 * NEWS: Mention ABI change for x64 PE-COFF.
643
7ad2014a
L
6442010-04-27 H.J. Lu <hongjiu.lu@intel.com>
645
646 * Makefile.am (install-exec-local): Properly install ld as
647 default cross linker.
648 * Makefile.in: Regenerated.
649
4fda8867
NC
6502010-04-27 H.J. Lu <hongjiu.lu@intel.com>
651 Nick Clifton <nickc@redhat.com>
652
653 * configure.in (install_as_default): Define and set to true
654 unless --enable-gold=both/gold has been specified.
655 * configure: Regenerate.
656
657 * Makefile.am (transform): Use ld.bfd as the default name of
658 the linker.
659 (install-exec-local): Also install the executable as a binary
660 named 'ld' if install_as_default is true.
661 * Makefile.in: Regenerate.
662
9c9c98a5
NC
6632010-04-22 Nick Clifton <nickc@redhat.com>
664
665 * po/ld.pot: Updated by the Translation project.
666 * po/vi.po: Updated Vietnamese translation.
667 * po/bg.po: Updated Bulgarian translation.
668
85fdf906
AH
6692010-04-15 Andrew Haley <aph@redhat.com>
670
671 * emultempl/armelf.em (merge_exidx_entries): New variable.
672 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
673 ("no-merge-exidx-entries"): New option.
674 * ld.texinfo (merge-exidx-entries): Document this option.
675
8b351884
TG
6762010-04-14 Tristan Gingold <gingold@adacore.com>
677
678 * emulparams/alphavms.sh: New file.
679 * emultempl/vms.em: New file.
680 * scripttempl/alphavms.sc: New file.
681 * configure.tgt (alpha*-*-*vms*): Added.
682 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
683 (ealphavms.c): New target.
684 * Makefile.in: Regenerate.
685
3d540e93
NC
6862010-04-09 Nick Clifton <nickc@redhat.com>
687
688 * ldlang.c (wild_sort): Remove unused variable section_name.
689
397841b5
AM
6902010-04-07 Alan Modra <amodra@gmail.com>
691
692 * configure: Regenerate.
693
6f8bcf84
L
6942010-04-06 H.J. Lu <hongjiu.lu@intel.com>
695
696 PR ld/11434
697 * ld/testsuite/ld-x86-64/unique1.d: New.
698 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
699
700 * ld-x86-64/x86-64.exp: Run unique1.
701
522f09cd
KT
7022010-04-05 Kai Tietz <kai.tietz@onevision.com>
703
704 * emultempl/pep.em (U): Macro modified.
705 (U_SIZE): New helper macro.
706 (GET_INIT_SYMBOL_NAME): Likewise.
707 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
708 and OPTION_LEADING_UNDERSCORE enumerator-values.
709 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
710 option.
711 (definfo): Add new member is_c_symbol.
712 (D): Add to macro underscore mode parameter.
713 (init): Add definition for is_c_symbol.
714 (gld_${EMULATION_NAME}_list_options): Display new options.
715 (set_pep_name): Adjust underscoring dependent fixed
716 symbol handling.
717 (gld_${EMULATION_NAME}_set_symbols): Likewise.
718 (saw_option): Likewise.
719 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
720 (set_entry_point): Initial initial_symbol_char dependent to
721 target's default and new option flag pep_leading_underscore.
722 * emultempl/pe.em (U): Macro modified.
723 (U_SIZE): New helper macro.
724 (GET_INIT_SYMBOL_NAME): Likewise.
725 (OPTION_LEADING_UNDERSCORE): Add new option define.
726 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
727 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
728 option.
729 (definfo): Add new member is_c_symbol.
730 (D): Add to macro underscore mode parameter.
731 (init): Add definition for is_c_symbol.
732 (gld_${EMULATION_NAME}_list_options): Display new options.
733 (set_pep_name): Adjust underscoring dependent fixed
734 symbol handling.
735 (gld_${EMULATION_NAME}_set_symbols): Likewise.
736 (saw_option): Likewise.
737 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
738 (set_entry_point): Initial initial_symbol_char dependent to
739 target's default and new option flag pep_leading_underscore.
740 * pe-dll.c (pe_leading_underscore): New flag variable.
741 (pe_detail_list): Remove const to allow modify of
742 member underscore.
743 (pe_dll_id_target): Initialize pe_details' underscore variable
744 dependent to target's default and flag pe_leading_underscore.
745 * pe-dll.h (pe_leading_underscore): Add extern declaration of
746 option flag.
747 * pep-dll.c (pe_leading_underscore): Add alias define for
748 pep_leading_underscore.
749 * pep-dll.h (pep_leading_underscore) Add extern declaration of
750 option flag.
751 * ld.texinfo: Add documentation for --(no-)leading-underscore
752 option.
753
edc314c9
AM
7542010-03-26 Alan Modra <amodra@gmail.com>
755
756 PR ld/11426
757 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
758 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
759
40b36596
JM
7602010-03-25 Joseph Myers <joseph@codesourcery.com>
761
762 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
763 eelf32_tic6x_le.o.
764 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
765 * NEWS: Add news entry for TI C6X support.
766 * configure.tgt (tic6x-*-*): New.
767 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
768
349e935b
JM
7692010-03-23 Joseph Myers <joseph@codesourcery.com>
770
771 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
772 BSS_NAME): Define if not already defined. Use in place of some
773 hardcoded section names.
774
576ee33a
L
7752010-03-18 H.J. Lu <hongjiu.lu@intel.com>
776
777 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
778
54801c2d
NC
7792010-03-18 Aymeric Vincent <vincent@labri.fr>
780
781 PR ld/11384
782 * emultempl/sh64elf.em: Add missing EOF.
783
17299ac7
NC
7842010-03-18 Doug Semler <dougsemler@gmail.com>
785
786 * pe-dll.c (make_one): Make text section readonly.
787 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
788 the jump stub on X86 as /SAFESEH compatible for
789 native toolchains.
790
e535e147
AM
7912010-03-17 Alan Modra <amodra@gmail.com>
792
793 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
794 *prev instead. Update all callers.
795
f77c3948
DJ
7962010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
797
798 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
799 region and phdrs as their placement section.
800
d43d0b53
AM
8012010-03-15 Alan Modra <amodra@gmail.com>
802
803 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
804 (ppc_before_allocation): Call sort_toc_sections.
805 (no_toc_sort, OPTION_NO_TOC_SORT): New.
806 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
807 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
808
70cc837d
AM
8092010-03-14 Alan Modra <amodra@gmail.com>
810
811 PR ld/11378
812 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
813 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
814
806fc311
AM
8152010-03-11 George Gensure <werkt0@gmail.com>
816
817 PR ld/11367
818 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
819
a6cc6b3b
RO
8202010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
821
822 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
823 eelf_i386_sol2.o.
824 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
825 (eelf32_sparc_sol2.c): New rule.
826 (eelf64_sparc_sol2.c): Likewise.
827 (eelf_x86_64_sol2.c): Likewise.
828 (eelf_i386_sol2.c): Likewise.
829 * Makefile.in: Regenerate.
830 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
831 elf_i386_sol2.
832 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
833 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
834 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
835 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
836 Add target_extra_emuls.
837 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
838 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
839 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
840 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
841 * emulparams/elf32_sparc_sol2.sh: New file.
842 * emulparams/elf64_sparc_sol2.sh: New file.
843 * emulparams/elf_i386_sol2.sh: New file.
844 * emulparams/elf_x86_64_sol2.sh: New file.
845 * emultempl/solaris2.em: New file.
846
fc073cb7
L
8472010-02-27 H.J. Lu <hongjiu.lu@intel.com>
848
849 PR ld/11330
850 * ld.texinfo: Replace explicitely with explicitly.
851
3cff7cc7
JZ
8522010-02-27 Jie Zhang <jie@codesourcery.com>
853
854 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
855 .fini_array.* when do relocatable linking.
856 * scripttempl/elf.sc: Likewise.
857 * scripttempl/elf32sh-symbian.sc: Likewise.
858 * scripttempl/elf64hppa.sc: Likewise.
859 * scripttempl/elfxtensa.sc: Likewise.
860
9445af9a
AM
8612010-02-26 Alan Modra <amodra@gmail.com>
862
863 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
864 .fini_array.*.
865 * scripttempl/armbpabi.sc: Likewise.
866 * scripttempl/elf32sh-symbian.sc: Likewise.
867 * scripttempl/elf64hppa.sc: Likewise.
868 * scripttempl/elfxtensa.sc: Likewise.
869
dfa7b0b8
AM
8702010-02-25 Alan Modra <amodra@gmail.com>
871
872 PR ld/11304
873 * ldlang.c (init_os): Remove isec param. Don't check for
874 bfd_section already set or call bfd_init_private_section_data
875 here.
876 (exp_init_os): Update init_os call.
877 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
878 flags. Call bfd_init_private_section_data here.
879 (map_input_to_output_sections): Tidy. Update init_os calls.
880 Use os->sectype to select sec flags for lang_data_statement.
881
a431bc2e
AM
8822010-02-23 Alan Modra <amodra@gmail.com>
883
884 PR ld/11304
885 * ldlang.c: Revert last patch.
886
1c063135
NC
8872010-02-23 Nick Clifton <nickc@redhat.com>
888
889 * po/bg.po: Updated Bulgarian translation.
890
c380a809
AM
8912010-02-22 Alan Modra <amodra@gmail.com>
892
893 PR ld/11304
894 * ldlang.c (exp_init_os): Delete forward declaration.
895 (init_os): Don't check for bfd_section already created and don't
896 init addr_tree and load_base expressions here.
897 (map_input_to_output_sections): Only map input to output sections
898 and set constraints here, and as an exception, create output
899 sections which have their address set. Move all the other code to..
900 (create_other_output_sections): ..here. New function. Handle init
901 of addr_tree and load_base here too.
902 (lang_process): Call create_other_output_sections.
903
c8c66882
AM
9042010-02-19 Alan Modra <amodra@gmail.com>
905
906 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
907 * Makefile.in: Regenerate.
908
d0bf826b
AM
9092010-02-19 Alan Modra <amodra@gmail.com>
910
911 * ldlang.c (unique_section_p): Add os param. Allow group
912 sections to match /DISCARD/. Update all callers.
913 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
914 (LDEMUL_BEFORE_ALLOCATION): Define.
915
ab7875de
NC
9162010-02-15 Nick Clifton <nickc@redhat.com>
917
918 * po/vi.po: Updated Vietnamese translation.
919
45e481d1
RS
9202010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
921
922 * Makefile.am (CFILES): Add ldlex-wrapper.c.
923 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
924 (ldlex.o): Replace with...
925 (ldlex-wrapper.o): ...this new rule.
926 (EXTRA_ld_new_SOURCES): Add ldlex.l.
927 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
928 * Makefile.in: Regenerate.
929 * ldlex.l (sysdep.h): Don't include here.
930 * ldlex-wrapper.c: New file.
931
33c0ec9d
AM
9322010-02-09 Alan Modra <amodra@gmail.com>
933
934 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
935 function parameters.
936
ef3f88be
NC
9372010-02-05 Nick Clifton <nickc@redhat.com>
938
939 * configure.in (ALL_LIBGUAS): Add bg.
940 * configure: Regenerate.
941 * po/bg.po: New Bulgarian translation.
942
f8266dc4
NC
9432010-02-05 Ryan Mansfield <rmansfield@qnx.com>
944
945 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
946 --target1-abs and --target1-rel options.
947
4dfe6ac6
NC
9482010-02-03 Nick Clifton <nickc@redhat.com>
949
950 * emultempl/alphaelf.em: Update value expected from elf_object_id.
951 * emultempl/hppaelf.em: Likewise.
952 * emultempl/mipself.em: Likewise.
953 * emultempl/ppc32elf.em: Likewise.
954 * emultempl/ppc64elf.em: Likewise.
955
927be08e
AM
9562010-02-03 Alan Modra <amodra@gmail.com>
957
958 * emultempl/ppc64elf.em (build_toc_list): Report errors from
959 ppc64_elf_next_toc_section.
960 (after_allocation): Update for changed function names and params.
961 Run second pass of multitoc partitioning.
962
c4b78195
NC
9632010-01-21 Jon Grant <jg@jguk.org>
964 Nick Clifton <nickc@redhat.com>
965
966 PR 4437
967 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
968 a missing file or library. Instead mark the entry as missing and
969 set the global flag to indicate that missing files were
970 encountered.
971 * ldlang.c (missing_files): New exported variable.
972 (load_symbols): Skip loading if the file is missing.
973 (open_input_bfds): Terminate link if any input files were
974 missing.
975 * ldlang.h (struct lang_input_statement_struct): Add missing_file
976 field.
977 Add export of missing_file variable.
978
b5f14a6d
DD
9792010-01-13 DJ Delorie <dj@redhat.com>
980
981 * emultempl/elf32.em (_place_orphan): If an input section doesn't
982 match an existing output section, but an unused output section
983 statement does match, use it.
984 * emultempl/pe.em (_place_orphan): Likewise.
985 * emultempl/pep.em (_place_orphan): Likewise.
986
3725885a
RW
9872010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
988
989 * configure: Regenerate.
990 * Makefile.in: Regenerate.
991
5256a5b0
L
9922010-01-08 H.J. Lu <hongjiu.lu@intel.com>
993
994 * ldver.c (ldversion): Change to "Copyright 2010".
995
b903363e
AM
9962010-01-08 Alan Modra <amodra@gmail.com>
997
998 PR 11107
999 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
9dda37c1 1000
43ecc30f 1001For older changes see ChangeLog-2009
252b5132
RH
1002\f
1003Local Variables:
1004mode: change-log
1005left-margin: 8
1006fill-column: 74
1007version-control: never
1008End:
This page took 0.635155 seconds and 4 git commands to generate.