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