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