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