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