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