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