* elf.c (bfd_elf_get_elf_syms): Don't leak memory on error.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
323ee3f4
AM
12008-08-04 Alan Modra <amodra@bigpond.net.au>
2
3 * Makefile.am (POTFILES.in): Set LC_ALL=C.
4 * Makefile.in: Regenerate.
5 * po/POTFILES.in: Regenerate.
6
cc9b841c
AM
72008-08-03 Alan Modra <amodra@bigpond.net.au>
8
9 * Makefile.am (spu_ovl.o): Merge rule into..
10 (spu_ovl.o_c): ..this one. Only run cpp for spu target.
11 * Makefile.in: Regenerate.
12
4b64c41f
JK
132008-08-02 Jan Kratochvil <jan.kratochvil@redhat.com>
14
15 Include the spu_ovl ASCII form in the repository files.
16 * emultempl/spuelf.em: No longer use `bin2c', use now `spu_ovl.o_c'.
17 * Makefile.am (eelf32_spu.c): Depend now on `spu_ovl.o_c'.
18 ($(srcdir)/emultempl/spu_ovl.o_c): New target.
19 ($(srcdir)/emultempl/spu_ovl.o): Rename to...
20 (spu_ovl.o): ...this one.
21 * Makefile.in: Regenerate.
22 * emultempl/spu_ovl.o_c: New file.
23 * emultempl/spu_ovl.o: File removed.
24
49314f87
DS
252008-07-31 Takashi Ono <t_ono@hkfreak.net>
26
27 * pe-dll.c (generate_relocs): Don't generate relocs for
28 undefined weak symbols.
29
2f9300ef
JK
302008-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
31
32 * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'.
33
0af1713e
AM
342008-07-30 Alan Modra <amodra@bigpond.net.au>
35
36 * emultempl/pe.em, emultempl/pep.em: Silence gcc warnings.
37
a9dc9481
JM
382008-07-18 Joseph Myers <joseph@codesourcery.com>
39
40 * ld.texinfo (--no-wchar-size-warning): Document new ARM option.
41 * emultempl/armelf.em (no_wchar_size_warning): New.
42 (arm_elf_create_output_section_statements): Pass
43 no_wchar_size_warning to arm_elf_create_output_section_statements.
44 (OPTION_NO_WCHAR_SIZE_WARNING): New.
45 (PARSE_AND_LIST_LONGOPTS): Add no-wchar-size-warning.
46 (PARSE_AND_LIST_OPTIONS): List --no-wchar-size-warning.
47 (PARSE_AND_LIST_ARGS_CASES): Handle --no-wchar-size-warning.
48
b0a0b978
JZ
492008-07-15 Jie Zhang <jie.zhang@analog.com>
50
51 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
52
4474d12b
CS
532008-07-12 Craig Silverstein <csilvers@google.com>
54
6fa08786 55 PR ld/6741
4474d12b
CS
56 * configure.in: Check for, and include, libz.a if it is present.
57 * configure: Regenerate.
58 * config.in: Regenerate.
59
1bac266e
JZ
602008-07-12 Jie Zhang <jie.zhang@analog.com>
61
62 Revert
63 2008-07-12 Jie Zhang <jie.zhang@analog.com>
64 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
65 (eelf32bfinfd.c): Likewise.
66 * Makefile.in: Regenerate.
67 * gen-doc.texi: Set Blackfin.
68 * ld.texinfo: Document --sep-code and Blackfin specific
69 options.
70 * ldmain.c (main): Initialize link_info.sep_code.
71 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
72 (ld_options[]): Add --sep-code.
73 (parse_args): Deal with --sep-code.
74 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
75 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
76 * emultempl/bfin.em: New file.
77
8c684578
JZ
782008-07-12 Jie Zhang <jie.zhang@analog.com>
79
80 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
81 (eelf32bfinfd.c): Likewise.
82 * Makefile.in: Regenerate.
83 * gen-doc.texi: Set Blackfin.
84 * ld.texinfo: Document --sep-code and Blackfin specific
85 options.
86 * ldmain.c (main): Initialize link_info.sep_code.
87 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
88 (ld_options[]): Add --sep-code.
89 (parse_args): Deal with --sep-code.
90 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
91 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
92 * emultempl/bfin.em: New file.
93
b92216aa
DS
942008-07-09 Danny Smith <dannysmith@users.sourceforge.net>
95
96 *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
97 starting with ".".
98 Exclude "_IMPORT_DESCRIPTOR_".
99 (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA".
100 (autofilter_symbollist_generic): Don't check for ".text".
101 Exclude "_NULL_IMPORT_DESCRIPTOR".
102 (autofilter_symbollist_i386): Likewise.
103
9795b468
AM
1042008-07-07 Alan Modra <amodra@bigpond.net.au>
105
106 * emultempl/armelf.em (elf32_arm_add_stub_section): Use
107 bfd_make_section_with_flags.
108 * emultempl/avrelf.em (avr_elf_create_output_section_statements):
109 Likewise.
110 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
111 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
112 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise.
113 * emultempl/m68kelf.em (m68k_elf_after_open): Likewise.
114 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
115 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation):
116 Likewise.
117
4006703d
NS
1182008-07-06 Nathan Sidwell <nathan@codesourcery.com>
119
120 * ld.texinfo (File Commands): Document that INCLUDE can be used in
121 several different places.
122 * ldgram.y (statement, memory_spec, section): Allow INCLUDE.
123 (memory, memory_spec_list): Simplify BNF
124 (memory_spec_list_opt): New rule.
125 * ldlex.l (INCLUDE): Recognize in EXPRESSION.
126
9f1a3ddf
AM
1272008-06-20 Alan Modra <amodra@bigpond.net.au>
128
129 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
130 build overlay stubs" a fatal error.
131
7a283e07
RW
1322008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
133
134 * config.in: Regenerate.
135 * configure: Regenerate.
136
99302af9
AM
1372008-06-17 Alan Modra <amodra@bigpond.net.au>
138
139 * emultempl/spuelf.em (extra_stack_space): New variable.
140 (gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma.
141 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
142 PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space.
143 * emultempl/spu_ovl.S: Mask interrupts during dma and update of
144 overlay manager structures.
145 * emultempl/spu_ovl.o: Regenerate.
146
7a2de473
HPN
1472008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
148
149 * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only
150 mention it as being special for global symbols.
151
5590fba9
NC
1522008-06-12 Nick Clifton <nickc@redhat.com>
153
154 * ldlang.c (print_output_section_statement): If the output section
155 statement has an update_dot_tree expression, apply it to
156 print_dot.
157 (print_input_section): Do not update print_dot if it would move
158 print_dot backwards.
159 (lang_do_assignments_1): If the output section statement has an
160 update_dot_tree expression apply it to dot.
161
967928e9
AM
1622008-06-07 Alan Modra <amodra@bigpond.net.au>
163
164 * NEWS: Mention archive:path patterns.
165 * ld.texinfo: Likewise.
166 * ldlang.c: Formatting throughout.
167 (archive_path): Only assume "[A-Za-z]:" is a dos drive.
168 (input_statement_is_archive_path): New function, extracted from..
169 (walk_wild): ..here.
170 (walk_wild_consider_section): Match archive:path here too.
171 (init_map_userdata, sort_def_symbol): Convert to ISO C.
172 * ldmain.c (main): Set link_info.path_separator.
173 * emultempl/spuelf.em (choose_target): Don't set it here.
174
97407faf
AM
1752008-06-06 Alan Modra <amodra@bigpond.net.au>
176
177 * ldlang.c (name_match): New function.
178 (unique_section_p, walk_wild_consider_section): Use it here.
179 (walk_wild_section_general): And here.
180 (archive_path): New function.
181 (walk_wild): Match archive:path filespecs.
182 (open_input_bfds): Don't load archive:path files.
183 * emultempl/spuelf.em (choose_target): Set path_separator.
184 * emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output.
185
a61ca861
NC
1862008-06-04 Nick Clifton <nickc@redhat.com>
187
188 * ld.texinfo (Orphan Sections): Fix texi typo.
189
0fe58ccd
NC
1902008-06-04 Chris Metcalf <cmetcalf@tilera.com>
191
192 * lexsup.c (option_values): Add OPTION_NO_WARN_FATAL.
193 (ld_options): Add entry for --no-fatal-warnings.
194 (parse_args): Handle OPTION_NO_WARN_FATAL.
195 * ld.texinfo (Options): Document new command line switch.
196
d77ec871
AM
1972008-06-04 Alan Modra <amodra@bigpond.net.au>
198
199 * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg.
200
476d8a22
NC
2012008-06-02 Nathan Sidwell <nathan@codesourcery.com>
202
203 * ldlang.c (closest_target_match): Skip generic big and little
204 endian ELF targets.
205
de7dd2bd
NC
2062008-05-31 Evandro Menezes <evandro@yahoo.com>
207
208 PR ld/6430
209 * ld.h (enum sort_order): New.
210 * ldlang.c (lang_check: Fix comment.
211 (lang_common): Sort commons in ascending or descending order.
212 (lang_one_common): Likewise.
213 * lexsup.c (ld_options): Have --sort-common take an option
214 argument.
215 (parse_args): Handle argument to --sort-common.
216 * ld.texinfo (--sort-common): Document new optional argument.
217 * NEWS: Mention new feature.
218
1a51c1a4
NC
2192008-05-28 Christophe Lyon <christophe.lyon@st.com>
220
221 * ld.texinfo: State that farcalls stubs are supported for ARM-EABI
222 only.
223
6ca0987a
KT
2242008-05-27 Kai Tietz <kai.tietz@onevision.com>
225
226 * pe-dll.c (fill_edata): Make sure we calculate vma's in
227 type bfd_vma.
228 (generate_reloc): Likewise.
229 (pe_implied_import_dll): Likewise.
230
45f111cc
NC
2312008-05-21 Nick Clifton <nickc@redhat.com>
232
233 PR ld/6519
234 * ld.texinfo (Orphan Sections): Mention that the linker will
235 provide start and stop symbols for orphaned sections if their
236 names are valid C identifiers.
237 * NEWS: Add an addendum to the description of the linker feature
238 for providing orphan section start and end symbols.
239
7fb9f789
NC
2402008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com>
241
242 * configure.in (--enable-got): New option. Handle it.
243 * configure: Regenerate.
244 * config.in: Regenerate.
245 * emultempl/m68kelf.em: (got_handling_target_default): New shell
246 variable.
247 (GOT_HANDLING_TARGET_DEFAULT): New macro.
248 (GOT_HANDLING_DEFAULT): New macro. Initialize it from configure
249 option if one was given.
250 (got_handling): New static variable.
251 (elf_m68k_create_output_section_statements): New static function
252 implementing hook.
253 (PARSE_AND_LIST_PROLOGUE): Define shell variable.
254 (OPTION_GOT): New macro.
255 (PARSE_AND_LIST_LONGOPTS): Define shell variable. Specify
256 --got option.
257 (got): New linker option.
258 (PARSE_AND_LIST_OPTIONS): Define shell variable. Print help string
259 for --got option.
260 (PARSE_AND_LIST_ARGS_CASES): Define shell variable. Handle --got
261 option.
262 * ld.texinfo: Document --got=<type> option.
263 * gen-doc.texi: Add M68K.
264 * NEWS: Mention the new feature.
265
41911f68
NC
2662008-05-21 Evandro Menezes <evandro@yahoo.com>
267
268 PR ld/6430
269 * ld.texinfo (--sort-common): Correct documentation to indicate
270 that sorting is performed by alignment, not size, biggest
271 alignment first.
272
726150b7
NC
2732008-05-21 Christophe Lyon <christophe.lyon@st.com>
274 Nick Clifton <nickc@redhat.com>
275
276 * ld.texinfo (ARM): Document --stub-group-size=N option.
277 Move description of --pic-veneer option into the ARM section.
278 * NEWS: Mention the support for long function calls.
279
906e58ca
NC
2802008-05-15 Christophe Lyon <christophe.lyon@st.com>
281
282 * emultempl/armelf.em (build_section_lists): New function.
283 (stub_file): Define.
284 (need_laying_out): Define.
285 (group_size): Define.
286 (hook_stub_info): Define.
287 (hook_in_stub): New function.
288 (elf32_arm_add_stub_section): New function.
289 (gldarm_layout_sections_again): New function.
290 (gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate
291 stubs for long calls if needed.
292 (arm_elf_create_output_section_statements): create stub_file bfd.
293 (arm_for_each_input_file_wrapper): New function.
294 (arm_lang_for_each_input_file): New function.
295 (lang_for_each_input_file): Define.
296 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE.
297 (PARSE_AND_LIST_LONGOPTS): Add option stub-group-size.
298 (PARSE_AND_LIST_OPTIONS): Add option stub-group-size.
299 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case.
300 (LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish.
301 * lang.c (print_input_statement): Skip if bfd has
302 BFD_LINKER_CREATED.
303
8944f3c2
AM
3042008-05-14 Alan Modra <amodra@bigpond.net.au>
305
306 * Makefile.in: Regenerate.
307
0ead4f8d
KT
3082008-05-09 Kai Tietz <kai.tietz@onevision.com>
309
310 ld/PR6502
8944f3c2
AM
311 * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead
312 of long and change return type to bfd_vma.
0ead4f8d
KT
313 (definfo): Change type of address from long to bfd_vma.
314 (set_pep_value): Replace strtoul to strtoull.
315 (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long..
8944f3c2
AM
316 * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print
317 ImageBase.
0ead4f8d
KT
318 (quick_reloc): Change argument address from int to bfd_size_type.
319
e7fc76dd
TT
3202008-05-08 Tom Tromey <tromey@redhat.com>
321
322 * ld.texinfo (PowerPC64 ELF64): Fix typo.
323
8374f9d4
AM
3242008-05-08 Alan Modra <amodra@bigpond.net.au>
325
326 * elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
327 * elf32ppc.sh: If building with spu support, put ".data.spehandle"
328 sections at the start of ".data" and provide a symbol to locate
329 the directory of embedded spe programs.
330
8c0848b5
AM
3312008-05-08 Alan Modra <amodra@bigpond.net.au>
332
333 * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K. Correct
334 MAX_K.
335 (fold_binary <SEGMENT_START>): Set expld.result.section to
336 current section. Expand comment. Formatting.
337 (fold_name <DEFINED>): Set expld.result.section to current section.
338
a2cab753
NS
3392008-04-28 Nathan Sidwell <nathan@codesourcery.com>
340
341 * ldlang.c (lang_size_sections_1): Don't check LMA overflow on
342 non-load sections.
343
bec9537e
MF
3442008-04-25 Michael Frysinger <vapier@gentoo.org>
345
346 * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
347 and targ_extra_emuls to elf32bfin.
348
6194aaab
L
3492008-04-23 Paolo Bonzini <bonzini@gnu.org>
350
351 * aclocal.m4: Regenerate.
352 * configure: Regenerate.
353
da6fa31a
KT
3542008-04-03 Kai Tietz <kai.tietz@onevision.com>
355
356 * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
357
9be9d352
AM
3582008-04-08 Alan Modra <amodra@bigpond.net.au>
359
360 * po/POTFILES.in: Regenerate.
361
9dcc4794
AM
3622008-04-08 Alan Modra <amodra@bigpond.net.au>
363
364 * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
365 auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
366 (spu_before_allocation): Warn on --auto-overlay and existing overlays.
367 (struct tflist, clean_tmp): Move.
368 (new_tmp_file): New function, extracted from..
369 (embedded_spu_file): ..here.
370 (spu_elf_open_overlay_script, spu_elf_relink): New function.
371 (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
372 Warn on --auto-overlay and zero local store.
373 (gld${EMULATION_NAME}_choose_target): New function to stash argv.
374 (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
375 OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
376 OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
377 (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
378 (PARSE_AND_LIST_OPTIONS): Likewise.
379 (PARSE_AND_LIST_ARGS_CASES): Likewise.
380 (LDEMUL_CHOOSE_TARGET): Define.
381
5f69259e
KT
3822008-04-03 Kai Tietz <kai.tietz@onevision.com>
383
384 PR ld/6026
385 * pe-dll.c (make_head): Fix iat and thunk addend offset.
386
95f0efb9
NC
3872008-03-31 Nick Clifton <nickc@redhat.com>
388
389 * po/fr.po: Updated French translation.
390
f36d5d55
ILT
3912008-03-24 Ian Lance Taylor <iant@google.com>
392
393 The sha1 code is now in libiberty.
394 * sha1.c: Remove.
395 * sha1.h: Remove.
396 * Makefile.am (CFILES): Remove sha1.c.
397 (HFILES): Remove sha1.h.
398 (OFILES): Remove sha1.o.
399 (ld_new_SOURCES): Remove sha1.c.
400 (sha1.o): Remove target.
401 * Makefile.in: Rebuild.
402
c65be8d7
AM
4032008-03-20 Alan Modra <amodra@bigpond.net.au>
404
405 * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
406
58c85be7
RW
4072008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
408
409 * aclocal.m4: Regenerate.
410 * configure: Likewise.
411 * Makefile.in: Likewise.
412
771a9c5f
AM
4132008-03-14 Alan Modra <amodra@bigpond.net.au>
414
415 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
416 spu_elf_build_stubs with is_spu_target.
417
50e7d84b
AM
4182008-03-13 Alan Modra <amodra@bigpond.net.au>
419
420 * Makefile.am: Run "make dep-am".
421 * Makefile.in: Regenerate.
422 * configure: Regenerate.
423
9e448631
NC
4242008-03-06 Joseph Myers <joseph@codesourcery.com>
425 Roman Zippel <zippel@linux-m68k.org>
426
427 * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
428 (COMMONPAGESIZE): Define.
429
07dfcf38
NC
4302008-02-22 Nick Clifton <nickc@redhat.com>
431
432 PR ld/5785
433 * ldlang.c (lang_size_sections_1): Honour the setting of an
434 lma_region even if there is no vma region set, or the vma region
435 is the same as the lma region.
436
b34c1498
NC
4372008-02-18 Nick Clifton <nickc@redhat.com>
438
439 * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
440 relocatable link.
441 * scripttempl/elf32cr16.sc: Likewise.
442 * scripttempl/elf32cr16c.sc: Likewise.
443 * scripttempl/elf32crx.sc: Likewise.
444 * scripttempl/elf32sh-symbian.sc: Likewise.
445 * scripttempl/elf_chaos.sc: Likewise.
446 * scripttempl/elfd10v.sc: Likewise.
447 * scripttempl/elfi370.sc: Likewise.
448 * scripttempl/elfm68hc11.sc: Likewise.
449 * scripttempl/elfm68hc12.sc: Likewise.
450 * scripttempl/ip2k.sc: Likewise.
451 * scripttempl/iq2000.sc: Likewise.
452 * scripttempl/mep.sc: Likewise.
453 * scripttempl/v850.sc: Likewise.
454 * scripttempl/xstormy16.sc: Likewise.
455
819da74e
AM
4562008-02-16 Alan Modra <amodra@bigpond.net.au>
457
458 PR ld/5761
459 * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
460 load_base before calling make_abs.
461
5503fea1
AM
4622008-02-15 Alan Modra <amodra@bigpond.net.au>
463
464 * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
465 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
466 Likewise.
467 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
468 Likewise.
469 * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete. Replace all
470 uses with..
471 (is_ppc_elf): ..this new macro.
472
f13a99db
AM
4732008-02-15 Alan Modra <amodra@bigpond.net.au>
474
475 * ldmain.h (output_bfd): Delete.
476 * ldmain.c (output_bfd): Delete.
477 Replace all occurrences of output_bfd with link_info.output_bfd.
478 * ldcref.c: Likewise.
479 * ldctor.c: Likewise.
480 * ldemul.c: Likewise.
481 * ldexp.c: Likewise.
482 * ldfile.c: Likewise.
483 * ldlang.c: Likewise.
484 * ldmisc.c: Likewise.
485 * ldwrite.c: Likewise.
486 * pe-dll.c: Likewise.
487 * emultempl/aix.em: Likewise.
488 * emultempl/alphaelf.em: Likewise.
489 * emultempl/armcoff.em: Likewise.
490 * emultempl/armelf.em: Likewise.
491 * emultempl/avrelf.em: Likewise.
492 * emultempl/beos.em: Likewise.
493 * emultempl/elf-generic.em: Likewise.
494 * emultempl/elf32.em: Likewise.
495 * emultempl/gld960.em: Likewise.
496 * emultempl/hppaelf.em: Likewise.
497 * emultempl/irix.em: Likewise.
498 * emultempl/linux.em: Likewise.
499 * emultempl/lnk960.em: Likewise.
500 * emultempl/m68hc1xelf.em: Likewise.
501 * emultempl/mmix-elfnmmo.em: Likewise.
502 * emultempl/mmo.em: Likewise.
503 * emultempl/pe.em: Likewise.
504 * emultempl/pep.em: Likewise.
505 * emultempl/ppc32elf.em: Likewise.
506 * emultempl/ppc64elf.em: Likewise.
507 * emultempl/scoreelf.em: Likewise.
508 * emultempl/sh64elf.em: Likewise.
509 * emultempl/spuelf.em: Likewise.
510 * emultempl/sunos.em: Likewise.
511 * emultempl/vanilla.em: Likewise.
512 * emultempl/vxworks.em: Likewise.
513 * emultempl/xtensaelf.em: Likewise.
514 * emultempl/z80.em: Likewise.
515 * ldlang.c (open_output): Don't return output, instead write
516 link_info_output_bfd directly.
517 * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
518 with link_info.output_bfd->xvec.
519 * emultempl/hppaelf.em: Likewise.
520 * emultempl/ppc32elf.em: Likewise.
521 * emultempl/ppc64elf.em: Likewise.
522 * emultempl/spuelf.em: Likewise.
523
ff7a0acf
AM
5242008-02-07 Alan Modra <amodra@bigpond.net.au>
525
526 * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
527 * ldfile.c (ldfile_add_library_path): Likewise.
528 * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
529 * emultempl/lnk960.em (lnk960_before_parse): Likewise.
530 * emultempl/spuelf.em (embedded_spu_file): Likewise.
531
2e444bea
AM
5322008-02-07 Alan Modra <amodra@bigpond.net.au>
533
534 * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
535 a "present" bit rather than low bit of .buf. Correct indexing
536 into _ovly_buf_table. Use relative loads and stores to access
537 overlay manager local vars.
538 * emultempl/spu_ovl.o: Regenerate.
539
bb8541b9
L
5402008-02-04 H.J. Lu <hongjiu.lu@intel.com>
541
542 PR 5715
543 * configure: Regenerated.
544
f8a52b59
BW
5452008-01-31 Marc Gauthier <marc@tensilica.com>
546
547 * configure.tgt (xtensa*-*-*): Recognize processor variants.
548
00b2bfc1
NC
5492008-01-28 Fabian Groffen <grobian@gentoo.org>
550
551 * configure.tgt (x86_64-*-solaris2): Add support for this target.
552
6e73d595
NC
5532008-01-28 Vincent Riviere <vincent.riviere@freesbee.fr>
554
555 PR ld/5652
556 * genscripts.sh: Check for the existence of BASH_LINENO not just
557 the BASH shell before generating line numbers in the emulation
558 file.
559
47f6dab9
AM
5602008-01-28 Alan Modra <amodra@bigpond.net.au>
561
562 * emultempl/spu_ovl.S: Rewrite.
563 * emultempl/spu_ovl.o: Regenerate.
564 * emultempl/spuelf.em (toe): Delete.
565 (spu_place_special_section): Add param to control section placement.
566 Adjust callers.
567 (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
568 changes.
569 (spu_before_allocation): Adjust spu_elf_size_stubs call.
570 (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
571
29183214
L
5722008-01-25 H.J. Lu <hongjiu.lu@intel.com>
573
574 PR ld/5670
575 * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
576 warning.
577
53d25da6
AM
5782008-01-25 Alan Modra <amodra@bigpond.net.au>
579
580 * ld.texinfo (INSERT): Describe.
581 * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
582 (INSERT_K, AFTER, BEFORE): Add as tokens.
583 (ifile_p1): Handle INSERT statements.
584 (saved_script_handle, force_make_executable): Move to..
585 * ldmain.c: ..here.
586 (previous_script_handle): New global var.
587 * ldmain.h (saved_script_handle, force_make_executable): Declare.
588 (previous_script_handle): Likewise.
589 * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
590 * lexsup.c (parge_args <-T>): Set previous_script_handle.
591 * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
592 (map_input_to_output_sections, print_statement): Likewise.
593 (lang_size_sections_1, lang_do_assignments_1): Likewise.
594 (insert_os_after): New function, extracted from..
595 (lang_insert_orphan): ..here.
596 (process_insert_statements): New function.
597 (lang_process): Call it.
598 (lang_add_insert): New function.
599 * ldlang.h (lang_insert_statement_enum): New.
600 (lang_insert_statement_type): New.
601 (lang_statement_union_type): Add insert_statement.
602 (lang_add_insert): Declare.
603
c19f06f2
BW
6042008-01-18 Bob Wilson <bob.wilson@acm.org>
605
606 * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
607 changes from elf.sc.
8944f3c2 608
14ac84b4
AM
6092008-01-16 Alan Modra <amodra@bigpond.net.au>
610
611 * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
612
3d00b095
AM
6132008-01-16 Alan Modra <amodra@bigpond.net.au>
614
615 * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
616 (lang_afile_asection_pair_statement_type): Delete.
617 (lang_statement_union_type): Delete afile_asection_pair_statement.
618 * ldlang.c (lang_insert_orphan): Delete case handling the above.
619 (map_input_to_output_sections, print_statement): Likewise.
620
58da7b1b
KK
6212008-01-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
622
623 * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
624 with __data_start.
625 * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
626
74f0fb50
AM
6272008-01-15 Alan Modra <amodra@bigpond.net.au>
628
629 PR 5604
630 * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
631 syms to _bfd_elf_gc_keep.
632 * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
633 ppc64_elf_edit_opd if no_opd_opt.
634
ac69cbc6
TG
6352008-01-11 Tristan Gingold <gingold@adacore.com>
636 Eric Botcazou <ebotcazou@adacore.com>
637
638 * ldlang.c (lang_end): Warns if the entry point is not found when
639 --gc-sections.
640 Emit an error if no root is specified when --gc-sections -r.
641 * ld.texinfo (Options): Document that --gc-sections is compatible
642 with -r and -q.
643 * ldmain.c (main): Do not error out if -r and --gc-sections.
644 * scripttempl/elf.sc: Emit ENTRY command only if relocating.
645
71934f94
NC
6462008-01-10 Daniel Jacobowitz <drow@sources.redhat.com>
647
648 PR ld/5533
649 * ldlang.c (lang_end): Issue a warning for a missing start symbol
650 of a shared library if the symbol was specified on the command
651 line.
652
d5465ba2
AM
6532008-01-10 Alan Modra <amodra@bigpond.net.au>
654
655 * ld.texinfo (--gc-sections): Describe linker behaviour.
656
6c7ac64e 657For older changes see ChangeLog-2007
252b5132
RH
658\f
659Local Variables:
660mode: change-log
661left-margin: 8
662fill-column: 74
663version-control: never
664End:
This page took 0.535342 seconds and 4 git commands to generate.