* ldlang.c (lang_output_section_find_by_flags): Handle non-alloc
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2008-10-22 Alan Modra <amodra@bigpond.net.au>
2
3 * ldlang.c (lang_output_section_find_by_flags): Handle non-alloc
4 sections.
5 * emultempl/elf32.em (enum orphan_save_index): Add orphan_nonalloc.
6 (hold): Likewise.
7 (gld${EMULATION_NAME}_place_orphan): Handle non-alloc orphans.
8
9 2008-10-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10
11 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Correct typo in
12 help text of --be8.
13
14 2008-10-20 Alan Modra <amodra@bigpond.net.au>
15
16 * ldemul.h (ldemul_place_orphan): Update prototype.
17 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
18 * ldemul.c (ldemul_place_orphan): Return pointer to output
19 section statement.
20 * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Likewise.
21 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
22 * emultempl/mmo.em (mmo_place_orphan): Likewise.
23 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
24 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
25
26 2008-10-08 Nick Clifton <nickc@redhat.com>
27
28 * configure.in (ALL_LINGUAS): Add "id".
29 * configure: Regenerate.
30 * po/id.po: New Indonesian translation.
31
32 2008-10-05 Alan Modra <amodra@bigpond.net.au>
33
34 PR 6943
35 * scripttempl/avr.sc (.bss): Set lma when relocating.
36 (.bss, .noinit): No need to set vma when relocating.
37 (.text, .bss, ,noinit): Set vma to zero when not relocating.
38
39 2008-10-04 Alan Modra <amodra@bigpond.net.au>
40
41 PR 6931
42 * ldemul.c (ldemul_place_orphan): Add "constraint" param.
43 * ldemul.h (ldemul_place_orphan): Update prototype.
44 (struct ld_emulation_xfer_struct <place_orphan>): Likewise add param.
45 * ldlang.c (unique_section_p): Make static.
46 (lang_output_section_statement_lookup): Optimise creation of SPECIAL
47 sections.
48 (lang_insert_orphan): Add "constraint" param. Pass to
49 lang_enter_output_section_statement.
50 (init_os): Don't use an existing bfd section for SPECIAL sections.
51 (lang_place_orphans): Don't rename unique output sections, instead
52 mark their output section statements SPECIAL.
53 * ldlang.h (lang_insert_orphan): Update prototype.
54 (unique_section_p): Delete.
55 * emultempl/beos.em (place_orphan): Add "constraint" param.
56 * emultempl/elf32.em (place_orphan): Likewise. Don't match existing
57 output sections if set.
58 * emultempl/pe.em (place_orphan): Likewise.
59 * emultempl/pep.em (place_orphan): Likewise.
60 * emultempl/mmo.em (mmo_place_orphan): Update.
61 * emultempl/spuelf.em (spu_place_special_section): Update.
62
63 2008-10-03 Alan Modra <amodra@bigpond.net.au>
64
65 PR 6931
66 * ldemul.c (ldemul_place_orphan): Add "name" param.
67 * ldemul.h (ldemul_place_orphan): Update prototype.
68 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
69 * ldlang.c (lang_place_orphans): Generate unique section names here..
70 * emultempl/elf32.em (place_orphan): ..rather than here. Don't
71 directly use an existing output section statement that has no
72 bfd section.
73 * emultempl/pe.em (place_orphan): Likewise.
74 * emultempl/pep.em (place_orphan): Likewise.
75 * emultempl/beos.em (place_orphan): Adjust.
76 * emultempl/spuelf.em (spu_place_special_section): Adjust
77 place_orphan call.
78 * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): New function.
79 (LDEMUL_AFTER_OPEN): Define.
80
81 2008-09-30 Joseph Myers <joseph@codesourcery.com>
82
83 * emulparams/elf64ppc.sh (OTHER_GOT_RELOC_SECTIONS): Add .rela.opd
84 and .rela.branch_lt.
85
86 2008-09-30 Alan Modra <amodra@bigpond.net.au>
87
88 * Makefile.am: Run "make dep-am".
89 * Makefile.in: Regenerate.
90
91 2008-09-29 Peter O'Gorman <pogma@thewrittenword.com>
92 Steve Ellcey <sje@cup.hp.com>
93
94 * configure: Regenerate for new libtool.
95 * aclocal.m4: Ditto.
96 * Makefile.in: Ditto.
97
98 2008-09-29 Kai Tietz <kai.tietz@onevision.com>
99
100 * pe-dll.c (make_import_fixup_entry): Make sure reloc is addend.
101
102 2008-09-29 Nick Clifton <nickc@redhat.com>
103
104 * po/vi.po: Updated Vietnamese translation.
105
106 2008-09-25 Alan Modra <amodra@bigpond.net.au>
107
108 * ldexp.c (fold_binary): Evaluate rhs when lhs not valid.
109
110 2008-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
111
112 * configure.in: Call AC_SYS_LARGEFILE.
113 * config.in: Regenerate.
114 * configure: Regenerate.
115
116 2008-09-09 Peter Rosin <peda@lysator.liu.se> (tiny change)
117
118 * emultempl/pe.em (pe_find_data_imports): Add trailing newline
119 to warning message.
120 * emultempl/pep.em (pep_find_data_imports): Likewise.
121
122 2008-09-08 H.J. Lu <hongjiu.lu@intel.com>
123
124 2008-09-07 Alan Modra <amodra@bigpond.net.au>
125
126 * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Updated.
127 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Likewise.
128
129 2008-09-08 Tristan Gingold <gingold@adacore.com>
130
131 * NEWS: Add a marker for the 2.19 features.
132
133 2008-09-07 Alan Modra <amodra@bigpond.net.au>
134
135 * ldlang.h (lang_output_section_find): Define.
136 (lang_output_section_statement_lookup): Update prototype.
137 * ldlang.c (lang_output_section_find,
138 lang_output_section_statement_lookup_1): Merge into..
139 (lang_output_section_statement_lookup): ..here. Update all callers.
140 (process_insert_statements): Set constraint negative
141 for output section statements we might be inserting. Make error
142 fatal on not finding insertion section.
143 (lang_output_section_find): Rather than comparing
144 output_section_statement.constraint against -1, test whether
145 it is postive.
146 (lang_output_section_statement_lookup_1): Likewise.
147 (output_prev_sec_find, strip_excluded_output_sections): Likewise.
148 (lang_record_phdrs): Likewise.
149 * emultempl/elf32.em (output_rel_find): Likewise.
150 * NEWS: Mention INSERT.
151
152 2008-08-26 Nick Clifton <nickc@redhat.com>
153
154 PR 6727
155 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Scan all
156 input sections in all input bfds and always select the last
157 suitable one, so that interworking stubs are always processed
158 after all other input sections.
159 (arm_elf_before_allocation): Remove redundant use of
160 output_has_begun flag.
161
162 2008-08-24 Alan Modra <amodra@bigpond.net.au>
163
164 * configure.in: Update a number of obsolete autoconf macros.
165 * configure: Regenerate.
166 * aclocal.m4: Regenerate.
167
168 2008-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
169
170 PR ld/6833
171 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Do not align
172 EXPLD.DATASEG.MIN_BASE.
173 * ldlang.c (lang_size_sections): New variable OLD_BASE. Rename
174 OLD_MIN_BASE to MIN_BASE with the former alignment from `ldexp.c'.
175 Use OLD_BASE now for the minimal base check after the base decrease by
176 the maximum alignment found.
177
178 2008-08-17 Alan Modra <amodra@bigpond.net.au>
179
180 PR 6478
181 * ldcref.c (check_local_sym_xref): Use bfd_generic_link_read_symbols.
182 Don't free symbol pointer array.
183 (check_refs): Likewise.
184 * ldmain.c (warning_callback): Likewise.
185 * ldmisc.c (vfinfo): Likewise.
186 * pe-dll.c (process_def_file): Likewise.
187 (pe_walk_relocs_of_symbol, generate_reloc): Likewise.
188 * emultempl/pe.em (pe_find_data_imports): Likewise.
189 (gld_${EMULATION_NAME}_after_open): Likewise.
190 * emultempl/pep.em (pep_find_data_imports): Likewise.
191 (gld_${EMULATION_NAME}_after_open): Likewise.
192 * ldlang.h (lang_input_statement_type): Delete asymbols, symbol_count,
193 passive_position, closed.
194 * ldlang.c (new_afile): Don't set asymbols and symbol_count.
195 * ldmain.c (add_archive_element): xcalloc lang_input_statement_type.
196
197 2008-08-15 Alan Modra <amodra@bigpond.net.au>
198
199 PR 6526
200 * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS.
201 * Makefile.in: Regenerate.
202 * aclocal.m4: Regenerate.
203 * config.in: Regenerate.
204 * configure: Regenerate.
205
206 2008-08-09 Alan Modra <amodra@bigpond.net.au>
207
208 PR 6753
209 * ldmain.c (check_for_scripts_dir, set_scripts_dir): Delete.
210 (main): Don't set_scripts_dir here.
211 * ldfile.c (check_for_scripts_dir, find_scripts_dir): New functions,
212 largely based on ldmain.c versions.
213 (ldfile_find_command_file): Set up search in script dir here without
214 affecting library search.
215 * Makefile.am (ldmain.o): No need to define SCRIPTDIR.
216 (ldfile.o): New rule.
217 * Makefile.in: Regenerate.
218
219 2008-08-08 Anatoly Sokolov <aesok@post.ru>
220
221 * Makefile.am (ALL_EMULATIONS): Add eavr25.o, eavr31.o, eavr35.o,
222 and eavr51.o.
223 Add rules for eavr25.c, eavr31.c, eavr35.c, eavr51.c.
224 * Makefile.in: Regenerate.
225 * configure.tgt (avr-*-*, targ_extra_emuls): Add avr25, avr31, avr35
226 and avr51.
227 * emulparams/avr25.sh: New file.
228 * emulparams/avr31.sh: New file.
229 * emulparams/avr35.sh: New file.
230 * emulparams/avr51.sh: New file.
231
232 2008-08-08 Richard Sandiford <rdsandiford@googlemail.com>
233 Daniel Jacobowitz <dan@codesourcery.com>
234
235 * emulparams/elf32bmip.sh (GOT): Define, moving .got.plt to...
236 (OTHER_RELRO_SECTIONS, OTHER_READWRITE_SECTIONS): ...one of these
237 two variables.
238 * emulparams/elf32bmipn32-defs.sh: Likewise.
239 * emultempl/mipself.em: Include ldctor.h, elf/mips.h and elfxx-mips.h.
240 (is_mips_elf): New macro.
241 (stub_file, stub_bfd): New variables.
242 (hook_stub_info): New structure.
243 (hook_in_stub): New function.
244 (mips_add_stub_section): Likewise.
245 (mips_create_output_section_statements): Likewise.
246 (mips_before_allocation): Likewise.
247 (real_func): New variable.
248 (mips_for_each_input_file_wrapper): New function.
249 (mips_lang_for_each_input_file): Likewise.
250 (lang_for_each_input_file): Define.
251 (LDEMUL_BEFORE_ALLOCATION): Likewise.
252 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Likewise.
253
254 2008-08-08 Alan Modra <amodra@bigpond.net.au>
255
256 * ldfile.c (ldfile_open_file_search): Use concat.
257 (try_open): Don't use a fixed size pathname buffer.
258 (ldfile_find_command_file): Likewise.
259 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive): If
260 using EXTRA_SHLIB_EXTENSION, don't open twice.
261
262 2008-08-04 Alan Modra <amodra@bigpond.net.au>
263
264 * Makefile.am (POTFILES.in): Set LC_ALL=C.
265 * Makefile.in: Regenerate.
266 * po/POTFILES.in: Regenerate.
267
268 2008-08-03 Alan Modra <amodra@bigpond.net.au>
269
270 * Makefile.am (spu_ovl.o): Merge rule into..
271 (spu_ovl.o_c): ..this one. Only run cpp for spu target.
272 * Makefile.in: Regenerate.
273
274 2008-08-02 Jan Kratochvil <jan.kratochvil@redhat.com>
275
276 Include the spu_ovl ASCII form in the repository files.
277 * emultempl/spuelf.em: No longer use `bin2c', use now `spu_ovl.o_c'.
278 * Makefile.am (eelf32_spu.c): Depend now on `spu_ovl.o_c'.
279 ($(srcdir)/emultempl/spu_ovl.o_c): New target.
280 ($(srcdir)/emultempl/spu_ovl.o): Rename to...
281 (spu_ovl.o): ...this one.
282 * Makefile.in: Regenerate.
283 * emultempl/spu_ovl.o_c: New file.
284 * emultempl/spu_ovl.o: File removed.
285
286 2008-07-31 Takashi Ono <t_ono@hkfreak.net>
287
288 * pe-dll.c (generate_relocs): Don't generate relocs for
289 undefined weak symbols.
290
291 2008-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
292
293 * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'.
294
295 2008-07-30 Alan Modra <amodra@bigpond.net.au>
296
297 * emultempl/pe.em, emultempl/pep.em: Silence gcc warnings.
298
299 2008-07-18 Joseph Myers <joseph@codesourcery.com>
300
301 * ld.texinfo (--no-wchar-size-warning): Document new ARM option.
302 * emultempl/armelf.em (no_wchar_size_warning): New.
303 (arm_elf_create_output_section_statements): Pass
304 no_wchar_size_warning to arm_elf_create_output_section_statements.
305 (OPTION_NO_WCHAR_SIZE_WARNING): New.
306 (PARSE_AND_LIST_LONGOPTS): Add no-wchar-size-warning.
307 (PARSE_AND_LIST_OPTIONS): List --no-wchar-size-warning.
308 (PARSE_AND_LIST_ARGS_CASES): Handle --no-wchar-size-warning.
309
310 2008-07-15 Jie Zhang <jie.zhang@analog.com>
311
312 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
313
314 2008-07-12 Craig Silverstein <csilvers@google.com>
315
316 PR ld/6741
317 * configure.in: Check for, and include, libz.a if it is present.
318 * configure: Regenerate.
319 * config.in: Regenerate.
320
321 2008-07-12 Jie Zhang <jie.zhang@analog.com>
322
323 Revert
324 2008-07-12 Jie Zhang <jie.zhang@analog.com>
325 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
326 (eelf32bfinfd.c): Likewise.
327 * Makefile.in: Regenerate.
328 * gen-doc.texi: Set Blackfin.
329 * ld.texinfo: Document --sep-code and Blackfin specific
330 options.
331 * ldmain.c (main): Initialize link_info.sep_code.
332 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
333 (ld_options[]): Add --sep-code.
334 (parse_args): Deal with --sep-code.
335 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
336 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
337 * emultempl/bfin.em: New file.
338
339 2008-07-12 Jie Zhang <jie.zhang@analog.com>
340
341 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
342 (eelf32bfinfd.c): Likewise.
343 * Makefile.in: Regenerate.
344 * gen-doc.texi: Set Blackfin.
345 * ld.texinfo: Document --sep-code and Blackfin specific
346 options.
347 * ldmain.c (main): Initialize link_info.sep_code.
348 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
349 (ld_options[]): Add --sep-code.
350 (parse_args): Deal with --sep-code.
351 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
352 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
353 * emultempl/bfin.em: New file.
354
355 2008-07-09 Danny Smith <dannysmith@users.sourceforge.net>
356
357 *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
358 starting with ".".
359 Exclude "_IMPORT_DESCRIPTOR_".
360 (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA".
361 (autofilter_symbollist_generic): Don't check for ".text".
362 Exclude "_NULL_IMPORT_DESCRIPTOR".
363 (autofilter_symbollist_i386): Likewise.
364
365 2008-07-07 Alan Modra <amodra@bigpond.net.au>
366
367 * emultempl/armelf.em (elf32_arm_add_stub_section): Use
368 bfd_make_section_with_flags.
369 * emultempl/avrelf.em (avr_elf_create_output_section_statements):
370 Likewise.
371 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
372 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
373 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise.
374 * emultempl/m68kelf.em (m68k_elf_after_open): Likewise.
375 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
376 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation):
377 Likewise.
378
379 2008-07-06 Nathan Sidwell <nathan@codesourcery.com>
380
381 * ld.texinfo (File Commands): Document that INCLUDE can be used in
382 several different places.
383 * ldgram.y (statement, memory_spec, section): Allow INCLUDE.
384 (memory, memory_spec_list): Simplify BNF
385 (memory_spec_list_opt): New rule.
386 * ldlex.l (INCLUDE): Recognize in EXPRESSION.
387
388 2008-06-20 Alan Modra <amodra@bigpond.net.au>
389
390 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
391 build overlay stubs" a fatal error.
392
393 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
394
395 * config.in: Regenerate.
396 * configure: Regenerate.
397
398 2008-06-17 Alan Modra <amodra@bigpond.net.au>
399
400 * emultempl/spuelf.em (extra_stack_space): New variable.
401 (gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma.
402 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
403 PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space.
404 * emultempl/spu_ovl.S: Mask interrupts during dma and update of
405 overlay manager structures.
406 * emultempl/spu_ovl.o: Regenerate.
407
408 2008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
409
410 * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only
411 mention it as being special for global symbols.
412
413 2008-06-12 Nick Clifton <nickc@redhat.com>
414
415 * ldlang.c (print_output_section_statement): If the output section
416 statement has an update_dot_tree expression, apply it to
417 print_dot.
418 (print_input_section): Do not update print_dot if it would move
419 print_dot backwards.
420 (lang_do_assignments_1): If the output section statement has an
421 update_dot_tree expression apply it to dot.
422
423 2008-06-07 Alan Modra <amodra@bigpond.net.au>
424
425 * NEWS: Mention archive:path patterns.
426 * ld.texinfo: Likewise.
427 * ldlang.c: Formatting throughout.
428 (archive_path): Only assume "[A-Za-z]:" is a dos drive.
429 (input_statement_is_archive_path): New function, extracted from..
430 (walk_wild): ..here.
431 (walk_wild_consider_section): Match archive:path here too.
432 (init_map_userdata, sort_def_symbol): Convert to ISO C.
433 * ldmain.c (main): Set link_info.path_separator.
434 * emultempl/spuelf.em (choose_target): Don't set it here.
435
436 2008-06-06 Alan Modra <amodra@bigpond.net.au>
437
438 * ldlang.c (name_match): New function.
439 (unique_section_p, walk_wild_consider_section): Use it here.
440 (walk_wild_section_general): And here.
441 (archive_path): New function.
442 (walk_wild): Match archive:path filespecs.
443 (open_input_bfds): Don't load archive:path files.
444 * emultempl/spuelf.em (choose_target): Set path_separator.
445 * emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output.
446
447 2008-06-04 Nick Clifton <nickc@redhat.com>
448
449 * ld.texinfo (Orphan Sections): Fix texi typo.
450
451 2008-06-04 Chris Metcalf <cmetcalf@tilera.com>
452
453 * lexsup.c (option_values): Add OPTION_NO_WARN_FATAL.
454 (ld_options): Add entry for --no-fatal-warnings.
455 (parse_args): Handle OPTION_NO_WARN_FATAL.
456 * ld.texinfo (Options): Document new command line switch.
457
458 2008-06-04 Alan Modra <amodra@bigpond.net.au>
459
460 * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg.
461
462 2008-06-02 Nathan Sidwell <nathan@codesourcery.com>
463
464 * ldlang.c (closest_target_match): Skip generic big and little
465 endian ELF targets.
466
467 2008-05-31 Evandro Menezes <evandro@yahoo.com>
468
469 PR ld/6430
470 * ld.h (enum sort_order): New.
471 * ldlang.c (lang_check: Fix comment.
472 (lang_common): Sort commons in ascending or descending order.
473 (lang_one_common): Likewise.
474 * lexsup.c (ld_options): Have --sort-common take an option
475 argument.
476 (parse_args): Handle argument to --sort-common.
477 * ld.texinfo (--sort-common): Document new optional argument.
478 * NEWS: Mention new feature.
479
480 2008-05-28 Christophe Lyon <christophe.lyon@st.com>
481
482 * ld.texinfo: State that farcalls stubs are supported for ARM-EABI
483 only.
484
485 2008-05-27 Kai Tietz <kai.tietz@onevision.com>
486
487 * pe-dll.c (fill_edata): Make sure we calculate vma's in
488 type bfd_vma.
489 (generate_reloc): Likewise.
490 (pe_implied_import_dll): Likewise.
491
492 2008-05-21 Nick Clifton <nickc@redhat.com>
493
494 PR ld/6519
495 * ld.texinfo (Orphan Sections): Mention that the linker will
496 provide start and stop symbols for orphaned sections if their
497 names are valid C identifiers.
498 * NEWS: Add an addendum to the description of the linker feature
499 for providing orphan section start and end symbols.
500
501 2008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com>
502
503 * configure.in (--enable-got): New option. Handle it.
504 * configure: Regenerate.
505 * config.in: Regenerate.
506 * emultempl/m68kelf.em: (got_handling_target_default): New shell
507 variable.
508 (GOT_HANDLING_TARGET_DEFAULT): New macro.
509 (GOT_HANDLING_DEFAULT): New macro. Initialize it from configure
510 option if one was given.
511 (got_handling): New static variable.
512 (elf_m68k_create_output_section_statements): New static function
513 implementing hook.
514 (PARSE_AND_LIST_PROLOGUE): Define shell variable.
515 (OPTION_GOT): New macro.
516 (PARSE_AND_LIST_LONGOPTS): Define shell variable. Specify
517 --got option.
518 (got): New linker option.
519 (PARSE_AND_LIST_OPTIONS): Define shell variable. Print help string
520 for --got option.
521 (PARSE_AND_LIST_ARGS_CASES): Define shell variable. Handle --got
522 option.
523 * ld.texinfo: Document --got=<type> option.
524 * gen-doc.texi: Add M68K.
525 * NEWS: Mention the new feature.
526
527 2008-05-21 Evandro Menezes <evandro@yahoo.com>
528
529 PR ld/6430
530 * ld.texinfo (--sort-common): Correct documentation to indicate
531 that sorting is performed by alignment, not size, biggest
532 alignment first.
533
534 2008-05-21 Christophe Lyon <christophe.lyon@st.com>
535 Nick Clifton <nickc@redhat.com>
536
537 * ld.texinfo (ARM): Document --stub-group-size=N option.
538 Move description of --pic-veneer option into the ARM section.
539 * NEWS: Mention the support for long function calls.
540
541 2008-05-15 Christophe Lyon <christophe.lyon@st.com>
542
543 * emultempl/armelf.em (build_section_lists): New function.
544 (stub_file): Define.
545 (need_laying_out): Define.
546 (group_size): Define.
547 (hook_stub_info): Define.
548 (hook_in_stub): New function.
549 (elf32_arm_add_stub_section): New function.
550 (gldarm_layout_sections_again): New function.
551 (gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate
552 stubs for long calls if needed.
553 (arm_elf_create_output_section_statements): create stub_file bfd.
554 (arm_for_each_input_file_wrapper): New function.
555 (arm_lang_for_each_input_file): New function.
556 (lang_for_each_input_file): Define.
557 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE.
558 (PARSE_AND_LIST_LONGOPTS): Add option stub-group-size.
559 (PARSE_AND_LIST_OPTIONS): Add option stub-group-size.
560 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case.
561 (LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish.
562 * lang.c (print_input_statement): Skip if bfd has
563 BFD_LINKER_CREATED.
564
565 2008-05-14 Alan Modra <amodra@bigpond.net.au>
566
567 * Makefile.in: Regenerate.
568
569 2008-05-09 Kai Tietz <kai.tietz@onevision.com>
570
571 ld/PR6502
572 * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead
573 of long and change return type to bfd_vma.
574 (definfo): Change type of address from long to bfd_vma.
575 (set_pep_value): Replace strtoul to strtoull.
576 (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long..
577 * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print
578 ImageBase.
579 (quick_reloc): Change argument address from int to bfd_size_type.
580
581 2008-05-08 Tom Tromey <tromey@redhat.com>
582
583 * ld.texinfo (PowerPC64 ELF64): Fix typo.
584
585 2008-05-08 Alan Modra <amodra@bigpond.net.au>
586
587 * elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
588 * elf32ppc.sh: If building with spu support, put ".data.spehandle"
589 sections at the start of ".data" and provide a symbol to locate
590 the directory of embedded spe programs.
591
592 2008-05-08 Alan Modra <amodra@bigpond.net.au>
593
594 * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K. Correct
595 MAX_K.
596 (fold_binary <SEGMENT_START>): Set expld.result.section to
597 current section. Expand comment. Formatting.
598 (fold_name <DEFINED>): Set expld.result.section to current section.
599
600 2008-04-28 Nathan Sidwell <nathan@codesourcery.com>
601
602 * ldlang.c (lang_size_sections_1): Don't check LMA overflow on
603 non-load sections.
604
605 2008-04-25 Michael Frysinger <vapier@gentoo.org>
606
607 * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
608 and targ_extra_emuls to elf32bfin.
609
610 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
611
612 * aclocal.m4: Regenerate.
613 * configure: Regenerate.
614
615 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
616
617 * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
618
619 2008-04-08 Alan Modra <amodra@bigpond.net.au>
620
621 * po/POTFILES.in: Regenerate.
622
623 2008-04-08 Alan Modra <amodra@bigpond.net.au>
624
625 * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
626 auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
627 (spu_before_allocation): Warn on --auto-overlay and existing overlays.
628 (struct tflist, clean_tmp): Move.
629 (new_tmp_file): New function, extracted from..
630 (embedded_spu_file): ..here.
631 (spu_elf_open_overlay_script, spu_elf_relink): New function.
632 (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
633 Warn on --auto-overlay and zero local store.
634 (gld${EMULATION_NAME}_choose_target): New function to stash argv.
635 (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
636 OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
637 OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
638 (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
639 (PARSE_AND_LIST_OPTIONS): Likewise.
640 (PARSE_AND_LIST_ARGS_CASES): Likewise.
641 (LDEMUL_CHOOSE_TARGET): Define.
642
643 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
644
645 PR ld/6026
646 * pe-dll.c (make_head): Fix iat and thunk addend offset.
647
648 2008-03-31 Nick Clifton <nickc@redhat.com>
649
650 * po/fr.po: Updated French translation.
651
652 2008-03-24 Ian Lance Taylor <iant@google.com>
653
654 The sha1 code is now in libiberty.
655 * sha1.c: Remove.
656 * sha1.h: Remove.
657 * Makefile.am (CFILES): Remove sha1.c.
658 (HFILES): Remove sha1.h.
659 (OFILES): Remove sha1.o.
660 (ld_new_SOURCES): Remove sha1.c.
661 (sha1.o): Remove target.
662 * Makefile.in: Rebuild.
663
664 2008-03-20 Alan Modra <amodra@bigpond.net.au>
665
666 * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
667
668 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
669
670 * aclocal.m4: Regenerate.
671 * configure: Likewise.
672 * Makefile.in: Likewise.
673
674 2008-03-14 Alan Modra <amodra@bigpond.net.au>
675
676 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
677 spu_elf_build_stubs with is_spu_target.
678
679 2008-03-13 Alan Modra <amodra@bigpond.net.au>
680
681 * Makefile.am: Run "make dep-am".
682 * Makefile.in: Regenerate.
683 * configure: Regenerate.
684
685 2008-03-06 Joseph Myers <joseph@codesourcery.com>
686 Roman Zippel <zippel@linux-m68k.org>
687
688 * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
689 (COMMONPAGESIZE): Define.
690
691 2008-02-22 Nick Clifton <nickc@redhat.com>
692
693 PR ld/5785
694 * ldlang.c (lang_size_sections_1): Honour the setting of an
695 lma_region even if there is no vma region set, or the vma region
696 is the same as the lma region.
697
698 2008-02-18 Nick Clifton <nickc@redhat.com>
699
700 * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
701 relocatable link.
702 * scripttempl/elf32cr16.sc: Likewise.
703 * scripttempl/elf32cr16c.sc: Likewise.
704 * scripttempl/elf32crx.sc: Likewise.
705 * scripttempl/elf32sh-symbian.sc: Likewise.
706 * scripttempl/elf_chaos.sc: Likewise.
707 * scripttempl/elfd10v.sc: Likewise.
708 * scripttempl/elfi370.sc: Likewise.
709 * scripttempl/elfm68hc11.sc: Likewise.
710 * scripttempl/elfm68hc12.sc: Likewise.
711 * scripttempl/ip2k.sc: Likewise.
712 * scripttempl/iq2000.sc: Likewise.
713 * scripttempl/mep.sc: Likewise.
714 * scripttempl/v850.sc: Likewise.
715 * scripttempl/xstormy16.sc: Likewise.
716
717 2008-02-16 Alan Modra <amodra@bigpond.net.au>
718
719 PR ld/5761
720 * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
721 load_base before calling make_abs.
722
723 2008-02-15 Alan Modra <amodra@bigpond.net.au>
724
725 * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
726 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
727 Likewise.
728 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
729 Likewise.
730 * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete. Replace all
731 uses with..
732 (is_ppc_elf): ..this new macro.
733
734 2008-02-15 Alan Modra <amodra@bigpond.net.au>
735
736 * ldmain.h (output_bfd): Delete.
737 * ldmain.c (output_bfd): Delete.
738 Replace all occurrences of output_bfd with link_info.output_bfd.
739 * ldcref.c: Likewise.
740 * ldctor.c: Likewise.
741 * ldemul.c: Likewise.
742 * ldexp.c: Likewise.
743 * ldfile.c: Likewise.
744 * ldlang.c: Likewise.
745 * ldmisc.c: Likewise.
746 * ldwrite.c: Likewise.
747 * pe-dll.c: Likewise.
748 * emultempl/aix.em: Likewise.
749 * emultempl/alphaelf.em: Likewise.
750 * emultempl/armcoff.em: Likewise.
751 * emultempl/armelf.em: Likewise.
752 * emultempl/avrelf.em: Likewise.
753 * emultempl/beos.em: Likewise.
754 * emultempl/elf-generic.em: Likewise.
755 * emultempl/elf32.em: Likewise.
756 * emultempl/gld960.em: Likewise.
757 * emultempl/hppaelf.em: Likewise.
758 * emultempl/irix.em: Likewise.
759 * emultempl/linux.em: Likewise.
760 * emultempl/lnk960.em: Likewise.
761 * emultempl/m68hc1xelf.em: Likewise.
762 * emultempl/mmix-elfnmmo.em: Likewise.
763 * emultempl/mmo.em: Likewise.
764 * emultempl/pe.em: Likewise.
765 * emultempl/pep.em: Likewise.
766 * emultempl/ppc32elf.em: Likewise.
767 * emultempl/ppc64elf.em: Likewise.
768 * emultempl/scoreelf.em: Likewise.
769 * emultempl/sh64elf.em: Likewise.
770 * emultempl/spuelf.em: Likewise.
771 * emultempl/sunos.em: Likewise.
772 * emultempl/vanilla.em: Likewise.
773 * emultempl/vxworks.em: Likewise.
774 * emultempl/xtensaelf.em: Likewise.
775 * emultempl/z80.em: Likewise.
776 * ldlang.c (open_output): Don't return output, instead write
777 link_info_output_bfd directly.
778 * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
779 with link_info.output_bfd->xvec.
780 * emultempl/hppaelf.em: Likewise.
781 * emultempl/ppc32elf.em: Likewise.
782 * emultempl/ppc64elf.em: Likewise.
783 * emultempl/spuelf.em: Likewise.
784
785 2008-02-07 Alan Modra <amodra@bigpond.net.au>
786
787 * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
788 * ldfile.c (ldfile_add_library_path): Likewise.
789 * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
790 * emultempl/lnk960.em (lnk960_before_parse): Likewise.
791 * emultempl/spuelf.em (embedded_spu_file): Likewise.
792
793 2008-02-07 Alan Modra <amodra@bigpond.net.au>
794
795 * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
796 a "present" bit rather than low bit of .buf. Correct indexing
797 into _ovly_buf_table. Use relative loads and stores to access
798 overlay manager local vars.
799 * emultempl/spu_ovl.o: Regenerate.
800
801 2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
802
803 PR 5715
804 * configure: Regenerated.
805
806 2008-01-31 Marc Gauthier <marc@tensilica.com>
807
808 * configure.tgt (xtensa*-*-*): Recognize processor variants.
809
810 2008-01-28 Fabian Groffen <grobian@gentoo.org>
811
812 * configure.tgt (x86_64-*-solaris2): Add support for this target.
813
814 2008-01-28 Vincent Riviere <vincent.riviere@freesbee.fr>
815
816 PR ld/5652
817 * genscripts.sh: Check for the existence of BASH_LINENO not just
818 the BASH shell before generating line numbers in the emulation
819 file.
820
821 2008-01-28 Alan Modra <amodra@bigpond.net.au>
822
823 * emultempl/spu_ovl.S: Rewrite.
824 * emultempl/spu_ovl.o: Regenerate.
825 * emultempl/spuelf.em (toe): Delete.
826 (spu_place_special_section): Add param to control section placement.
827 Adjust callers.
828 (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
829 changes.
830 (spu_before_allocation): Adjust spu_elf_size_stubs call.
831 (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
832
833 2008-01-25 H.J. Lu <hongjiu.lu@intel.com>
834
835 PR ld/5670
836 * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
837 warning.
838
839 2008-01-25 Alan Modra <amodra@bigpond.net.au>
840
841 * ld.texinfo (INSERT): Describe.
842 * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
843 (INSERT_K, AFTER, BEFORE): Add as tokens.
844 (ifile_p1): Handle INSERT statements.
845 (saved_script_handle, force_make_executable): Move to..
846 * ldmain.c: ..here.
847 (previous_script_handle): New global var.
848 * ldmain.h (saved_script_handle, force_make_executable): Declare.
849 (previous_script_handle): Likewise.
850 * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
851 * lexsup.c (parge_args <-T>): Set previous_script_handle.
852 * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
853 (map_input_to_output_sections, print_statement): Likewise.
854 (lang_size_sections_1, lang_do_assignments_1): Likewise.
855 (insert_os_after): New function, extracted from..
856 (lang_insert_orphan): ..here.
857 (process_insert_statements): New function.
858 (lang_process): Call it.
859 (lang_add_insert): New function.
860 * ldlang.h (lang_insert_statement_enum): New.
861 (lang_insert_statement_type): New.
862 (lang_statement_union_type): Add insert_statement.
863 (lang_add_insert): Declare.
864
865 2008-01-18 Bob Wilson <bob.wilson@acm.org>
866
867 * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
868 changes from elf.sc.
869
870 2008-01-16 Alan Modra <amodra@bigpond.net.au>
871
872 * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
873
874 2008-01-16 Alan Modra <amodra@bigpond.net.au>
875
876 * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
877 (lang_afile_asection_pair_statement_type): Delete.
878 (lang_statement_union_type): Delete afile_asection_pair_statement.
879 * ldlang.c (lang_insert_orphan): Delete case handling the above.
880 (map_input_to_output_sections, print_statement): Likewise.
881
882 2008-01-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
883
884 * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
885 with __data_start.
886 * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
887
888 2008-01-15 Alan Modra <amodra@bigpond.net.au>
889
890 PR 5604
891 * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
892 syms to _bfd_elf_gc_keep.
893 * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
894 ppc64_elf_edit_opd if no_opd_opt.
895
896 2008-01-11 Tristan Gingold <gingold@adacore.com>
897 Eric Botcazou <ebotcazou@adacore.com>
898
899 * ldlang.c (lang_end): Warns if the entry point is not found when
900 --gc-sections.
901 Emit an error if no root is specified when --gc-sections -r.
902 * ld.texinfo (Options): Document that --gc-sections is compatible
903 with -r and -q.
904 * ldmain.c (main): Do not error out if -r and --gc-sections.
905 * scripttempl/elf.sc: Emit ENTRY command only if relocating.
906
907 2008-01-10 Daniel Jacobowitz <drow@sources.redhat.com>
908
909 PR ld/5533
910 * ldlang.c (lang_end): Issue a warning for a missing start symbol
911 of a shared library if the symbol was specified on the command
912 line.
913
914 2008-01-10 Alan Modra <amodra@bigpond.net.au>
915
916 * ld.texinfo (--gc-sections): Describe linker behaviour.
917
918 For older changes see ChangeLog-2007
919 \f
920 Local Variables:
921 mode: change-log
922 left-margin: 8
923 fill-column: 74
924 version-control: never
925 End:
This page took 0.049521 seconds and 4 git commands to generate.