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