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