bfd/
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
8c684578
JZ
12008-07-12 Jie Zhang <jie.zhang@analog.com>
2
3 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
4 (eelf32bfinfd.c): Likewise.
5 * Makefile.in: Regenerate.
6 * gen-doc.texi: Set Blackfin.
7 * ld.texinfo: Document --sep-code and Blackfin specific
8 options.
9 * ldmain.c (main): Initialize link_info.sep_code.
10 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
11 (ld_options[]): Add --sep-code.
12 (parse_args): Deal with --sep-code.
13 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
14 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
15 * emultempl/bfin.em: New file.
16
b92216aa
DS
172008-07-09 Danny Smith <dannysmith@users.sourceforge.net>
18
19 *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
20 starting with ".".
21 Exclude "_IMPORT_DESCRIPTOR_".
22 (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA".
23 (autofilter_symbollist_generic): Don't check for ".text".
24 Exclude "_NULL_IMPORT_DESCRIPTOR".
25 (autofilter_symbollist_i386): Likewise.
26
9795b468
AM
272008-07-07 Alan Modra <amodra@bigpond.net.au>
28
29 * emultempl/armelf.em (elf32_arm_add_stub_section): Use
30 bfd_make_section_with_flags.
31 * emultempl/avrelf.em (avr_elf_create_output_section_statements):
32 Likewise.
33 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
34 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
35 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise.
36 * emultempl/m68kelf.em (m68k_elf_after_open): Likewise.
37 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
38 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation):
39 Likewise.
40
4006703d
NS
412008-07-06 Nathan Sidwell <nathan@codesourcery.com>
42
43 * ld.texinfo (File Commands): Document that INCLUDE can be used in
44 several different places.
45 * ldgram.y (statement, memory_spec, section): Allow INCLUDE.
46 (memory, memory_spec_list): Simplify BNF
47 (memory_spec_list_opt): New rule.
48 * ldlex.l (INCLUDE): Recognize in EXPRESSION.
49
9f1a3ddf
AM
502008-06-20 Alan Modra <amodra@bigpond.net.au>
51
52 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
53 build overlay stubs" a fatal error.
54
7a283e07
RW
552008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
56
57 * config.in: Regenerate.
58 * configure: Regenerate.
59
99302af9
AM
602008-06-17 Alan Modra <amodra@bigpond.net.au>
61
62 * emultempl/spuelf.em (extra_stack_space): New variable.
63 (gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma.
64 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
65 PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space.
66 * emultempl/spu_ovl.S: Mask interrupts during dma and update of
67 overlay manager structures.
68 * emultempl/spu_ovl.o: Regenerate.
69
7a2de473
HPN
702008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
71
72 * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only
73 mention it as being special for global symbols.
74
5590fba9
NC
752008-06-12 Nick Clifton <nickc@redhat.com>
76
77 * ldlang.c (print_output_section_statement): If the output section
78 statement has an update_dot_tree expression, apply it to
79 print_dot.
80 (print_input_section): Do not update print_dot if it would move
81 print_dot backwards.
82 (lang_do_assignments_1): If the output section statement has an
83 update_dot_tree expression apply it to dot.
84
967928e9
AM
852008-06-07 Alan Modra <amodra@bigpond.net.au>
86
87 * NEWS: Mention archive:path patterns.
88 * ld.texinfo: Likewise.
89 * ldlang.c: Formatting throughout.
90 (archive_path): Only assume "[A-Za-z]:" is a dos drive.
91 (input_statement_is_archive_path): New function, extracted from..
92 (walk_wild): ..here.
93 (walk_wild_consider_section): Match archive:path here too.
94 (init_map_userdata, sort_def_symbol): Convert to ISO C.
95 * ldmain.c (main): Set link_info.path_separator.
96 * emultempl/spuelf.em (choose_target): Don't set it here.
97
97407faf
AM
982008-06-06 Alan Modra <amodra@bigpond.net.au>
99
100 * ldlang.c (name_match): New function.
101 (unique_section_p, walk_wild_consider_section): Use it here.
102 (walk_wild_section_general): And here.
103 (archive_path): New function.
104 (walk_wild): Match archive:path filespecs.
105 (open_input_bfds): Don't load archive:path files.
106 * emultempl/spuelf.em (choose_target): Set path_separator.
107 * emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output.
108
a61ca861
NC
1092008-06-04 Nick Clifton <nickc@redhat.com>
110
111 * ld.texinfo (Orphan Sections): Fix texi typo.
112
0fe58ccd
NC
1132008-06-04 Chris Metcalf <cmetcalf@tilera.com>
114
115 * lexsup.c (option_values): Add OPTION_NO_WARN_FATAL.
116 (ld_options): Add entry for --no-fatal-warnings.
117 (parse_args): Handle OPTION_NO_WARN_FATAL.
118 * ld.texinfo (Options): Document new command line switch.
119
d77ec871
AM
1202008-06-04 Alan Modra <amodra@bigpond.net.au>
121
122 * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg.
123
476d8a22
NC
1242008-06-02 Nathan Sidwell <nathan@codesourcery.com>
125
126 * ldlang.c (closest_target_match): Skip generic big and little
127 endian ELF targets.
128
de7dd2bd
NC
1292008-05-31 Evandro Menezes <evandro@yahoo.com>
130
131 PR ld/6430
132 * ld.h (enum sort_order): New.
133 * ldlang.c (lang_check: Fix comment.
134 (lang_common): Sort commons in ascending or descending order.
135 (lang_one_common): Likewise.
136 * lexsup.c (ld_options): Have --sort-common take an option
137 argument.
138 (parse_args): Handle argument to --sort-common.
139 * ld.texinfo (--sort-common): Document new optional argument.
140 * NEWS: Mention new feature.
141
1a51c1a4
NC
1422008-05-28 Christophe Lyon <christophe.lyon@st.com>
143
144 * ld.texinfo: State that farcalls stubs are supported for ARM-EABI
145 only.
146
6ca0987a
KT
1472008-05-27 Kai Tietz <kai.tietz@onevision.com>
148
149 * pe-dll.c (fill_edata): Make sure we calculate vma's in
150 type bfd_vma.
151 (generate_reloc): Likewise.
152 (pe_implied_import_dll): Likewise.
153
45f111cc
NC
1542008-05-21 Nick Clifton <nickc@redhat.com>
155
156 PR ld/6519
157 * ld.texinfo (Orphan Sections): Mention that the linker will
158 provide start and stop symbols for orphaned sections if their
159 names are valid C identifiers.
160 * NEWS: Add an addendum to the description of the linker feature
161 for providing orphan section start and end symbols.
162
7fb9f789
NC
1632008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com>
164
165 * configure.in (--enable-got): New option. Handle it.
166 * configure: Regenerate.
167 * config.in: Regenerate.
168 * emultempl/m68kelf.em: (got_handling_target_default): New shell
169 variable.
170 (GOT_HANDLING_TARGET_DEFAULT): New macro.
171 (GOT_HANDLING_DEFAULT): New macro. Initialize it from configure
172 option if one was given.
173 (got_handling): New static variable.
174 (elf_m68k_create_output_section_statements): New static function
175 implementing hook.
176 (PARSE_AND_LIST_PROLOGUE): Define shell variable.
177 (OPTION_GOT): New macro.
178 (PARSE_AND_LIST_LONGOPTS): Define shell variable. Specify
179 --got option.
180 (got): New linker option.
181 (PARSE_AND_LIST_OPTIONS): Define shell variable. Print help string
182 for --got option.
183 (PARSE_AND_LIST_ARGS_CASES): Define shell variable. Handle --got
184 option.
185 * ld.texinfo: Document --got=<type> option.
186 * gen-doc.texi: Add M68K.
187 * NEWS: Mention the new feature.
188
41911f68
NC
1892008-05-21 Evandro Menezes <evandro@yahoo.com>
190
191 PR ld/6430
192 * ld.texinfo (--sort-common): Correct documentation to indicate
193 that sorting is performed by alignment, not size, biggest
194 alignment first.
195
726150b7
NC
1962008-05-21 Christophe Lyon <christophe.lyon@st.com>
197 Nick Clifton <nickc@redhat.com>
198
199 * ld.texinfo (ARM): Document --stub-group-size=N option.
200 Move description of --pic-veneer option into the ARM section.
201 * NEWS: Mention the support for long function calls.
202
906e58ca
NC
2032008-05-15 Christophe Lyon <christophe.lyon@st.com>
204
205 * emultempl/armelf.em (build_section_lists): New function.
206 (stub_file): Define.
207 (need_laying_out): Define.
208 (group_size): Define.
209 (hook_stub_info): Define.
210 (hook_in_stub): New function.
211 (elf32_arm_add_stub_section): New function.
212 (gldarm_layout_sections_again): New function.
213 (gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate
214 stubs for long calls if needed.
215 (arm_elf_create_output_section_statements): create stub_file bfd.
216 (arm_for_each_input_file_wrapper): New function.
217 (arm_lang_for_each_input_file): New function.
218 (lang_for_each_input_file): Define.
219 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE.
220 (PARSE_AND_LIST_LONGOPTS): Add option stub-group-size.
221 (PARSE_AND_LIST_OPTIONS): Add option stub-group-size.
222 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case.
223 (LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish.
224 * lang.c (print_input_statement): Skip if bfd has
225 BFD_LINKER_CREATED.
226
8944f3c2
AM
2272008-05-14 Alan Modra <amodra@bigpond.net.au>
228
229 * Makefile.in: Regenerate.
230
0ead4f8d
KT
2312008-05-09 Kai Tietz <kai.tietz@onevision.com>
232
233 ld/PR6502
8944f3c2
AM
234 * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead
235 of long and change return type to bfd_vma.
0ead4f8d
KT
236 (definfo): Change type of address from long to bfd_vma.
237 (set_pep_value): Replace strtoul to strtoull.
238 (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long..
8944f3c2
AM
239 * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print
240 ImageBase.
0ead4f8d
KT
241 (quick_reloc): Change argument address from int to bfd_size_type.
242
e7fc76dd
TT
2432008-05-08 Tom Tromey <tromey@redhat.com>
244
245 * ld.texinfo (PowerPC64 ELF64): Fix typo.
246
8374f9d4
AM
2472008-05-08 Alan Modra <amodra@bigpond.net.au>
248
249 * elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
250 * elf32ppc.sh: If building with spu support, put ".data.spehandle"
251 sections at the start of ".data" and provide a symbol to locate
252 the directory of embedded spe programs.
253
8c0848b5
AM
2542008-05-08 Alan Modra <amodra@bigpond.net.au>
255
256 * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K. Correct
257 MAX_K.
258 (fold_binary <SEGMENT_START>): Set expld.result.section to
259 current section. Expand comment. Formatting.
260 (fold_name <DEFINED>): Set expld.result.section to current section.
261
a2cab753
NS
2622008-04-28 Nathan Sidwell <nathan@codesourcery.com>
263
264 * ldlang.c (lang_size_sections_1): Don't check LMA overflow on
265 non-load sections.
266
bec9537e
MF
2672008-04-25 Michael Frysinger <vapier@gentoo.org>
268
269 * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
270 and targ_extra_emuls to elf32bfin.
271
6194aaab
L
2722008-04-23 Paolo Bonzini <bonzini@gnu.org>
273
274 * aclocal.m4: Regenerate.
275 * configure: Regenerate.
276
da6fa31a
KT
2772008-04-03 Kai Tietz <kai.tietz@onevision.com>
278
279 * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
280
9be9d352
AM
2812008-04-08 Alan Modra <amodra@bigpond.net.au>
282
283 * po/POTFILES.in: Regenerate.
284
9dcc4794
AM
2852008-04-08 Alan Modra <amodra@bigpond.net.au>
286
287 * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
288 auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
289 (spu_before_allocation): Warn on --auto-overlay and existing overlays.
290 (struct tflist, clean_tmp): Move.
291 (new_tmp_file): New function, extracted from..
292 (embedded_spu_file): ..here.
293 (spu_elf_open_overlay_script, spu_elf_relink): New function.
294 (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
295 Warn on --auto-overlay and zero local store.
296 (gld${EMULATION_NAME}_choose_target): New function to stash argv.
297 (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
298 OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
299 OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
300 (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
301 (PARSE_AND_LIST_OPTIONS): Likewise.
302 (PARSE_AND_LIST_ARGS_CASES): Likewise.
303 (LDEMUL_CHOOSE_TARGET): Define.
304
5f69259e
KT
3052008-04-03 Kai Tietz <kai.tietz@onevision.com>
306
307 PR ld/6026
308 * pe-dll.c (make_head): Fix iat and thunk addend offset.
309
95f0efb9
NC
3102008-03-31 Nick Clifton <nickc@redhat.com>
311
312 * po/fr.po: Updated French translation.
313
f36d5d55
ILT
3142008-03-24 Ian Lance Taylor <iant@google.com>
315
316 The sha1 code is now in libiberty.
317 * sha1.c: Remove.
318 * sha1.h: Remove.
319 * Makefile.am (CFILES): Remove sha1.c.
320 (HFILES): Remove sha1.h.
321 (OFILES): Remove sha1.o.
322 (ld_new_SOURCES): Remove sha1.c.
323 (sha1.o): Remove target.
324 * Makefile.in: Rebuild.
325
c65be8d7
AM
3262008-03-20 Alan Modra <amodra@bigpond.net.au>
327
328 * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
329
58c85be7
RW
3302008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
331
332 * aclocal.m4: Regenerate.
333 * configure: Likewise.
334 * Makefile.in: Likewise.
335
771a9c5f
AM
3362008-03-14 Alan Modra <amodra@bigpond.net.au>
337
338 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
339 spu_elf_build_stubs with is_spu_target.
340
50e7d84b
AM
3412008-03-13 Alan Modra <amodra@bigpond.net.au>
342
343 * Makefile.am: Run "make dep-am".
344 * Makefile.in: Regenerate.
345 * configure: Regenerate.
346
9e448631
NC
3472008-03-06 Joseph Myers <joseph@codesourcery.com>
348 Roman Zippel <zippel@linux-m68k.org>
349
350 * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
351 (COMMONPAGESIZE): Define.
352
07dfcf38
NC
3532008-02-22 Nick Clifton <nickc@redhat.com>
354
355 PR ld/5785
356 * ldlang.c (lang_size_sections_1): Honour the setting of an
357 lma_region even if there is no vma region set, or the vma region
358 is the same as the lma region.
359
b34c1498
NC
3602008-02-18 Nick Clifton <nickc@redhat.com>
361
362 * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
363 relocatable link.
364 * scripttempl/elf32cr16.sc: Likewise.
365 * scripttempl/elf32cr16c.sc: Likewise.
366 * scripttempl/elf32crx.sc: Likewise.
367 * scripttempl/elf32sh-symbian.sc: Likewise.
368 * scripttempl/elf_chaos.sc: Likewise.
369 * scripttempl/elfd10v.sc: Likewise.
370 * scripttempl/elfi370.sc: Likewise.
371 * scripttempl/elfm68hc11.sc: Likewise.
372 * scripttempl/elfm68hc12.sc: Likewise.
373 * scripttempl/ip2k.sc: Likewise.
374 * scripttempl/iq2000.sc: Likewise.
375 * scripttempl/mep.sc: Likewise.
376 * scripttempl/v850.sc: Likewise.
377 * scripttempl/xstormy16.sc: Likewise.
378
819da74e
AM
3792008-02-16 Alan Modra <amodra@bigpond.net.au>
380
381 PR ld/5761
382 * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
383 load_base before calling make_abs.
384
5503fea1
AM
3852008-02-15 Alan Modra <amodra@bigpond.net.au>
386
387 * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
388 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
389 Likewise.
390 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
391 Likewise.
392 * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete. Replace all
393 uses with..
394 (is_ppc_elf): ..this new macro.
395
f13a99db
AM
3962008-02-15 Alan Modra <amodra@bigpond.net.au>
397
398 * ldmain.h (output_bfd): Delete.
399 * ldmain.c (output_bfd): Delete.
400 Replace all occurrences of output_bfd with link_info.output_bfd.
401 * ldcref.c: Likewise.
402 * ldctor.c: Likewise.
403 * ldemul.c: Likewise.
404 * ldexp.c: Likewise.
405 * ldfile.c: Likewise.
406 * ldlang.c: Likewise.
407 * ldmisc.c: Likewise.
408 * ldwrite.c: Likewise.
409 * pe-dll.c: Likewise.
410 * emultempl/aix.em: Likewise.
411 * emultempl/alphaelf.em: Likewise.
412 * emultempl/armcoff.em: Likewise.
413 * emultempl/armelf.em: Likewise.
414 * emultempl/avrelf.em: Likewise.
415 * emultempl/beos.em: Likewise.
416 * emultempl/elf-generic.em: Likewise.
417 * emultempl/elf32.em: Likewise.
418 * emultempl/gld960.em: Likewise.
419 * emultempl/hppaelf.em: Likewise.
420 * emultempl/irix.em: Likewise.
421 * emultempl/linux.em: Likewise.
422 * emultempl/lnk960.em: Likewise.
423 * emultempl/m68hc1xelf.em: Likewise.
424 * emultempl/mmix-elfnmmo.em: Likewise.
425 * emultempl/mmo.em: Likewise.
426 * emultempl/pe.em: Likewise.
427 * emultempl/pep.em: Likewise.
428 * emultempl/ppc32elf.em: Likewise.
429 * emultempl/ppc64elf.em: Likewise.
430 * emultempl/scoreelf.em: Likewise.
431 * emultempl/sh64elf.em: Likewise.
432 * emultempl/spuelf.em: Likewise.
433 * emultempl/sunos.em: Likewise.
434 * emultempl/vanilla.em: Likewise.
435 * emultempl/vxworks.em: Likewise.
436 * emultempl/xtensaelf.em: Likewise.
437 * emultempl/z80.em: Likewise.
438 * ldlang.c (open_output): Don't return output, instead write
439 link_info_output_bfd directly.
440 * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
441 with link_info.output_bfd->xvec.
442 * emultempl/hppaelf.em: Likewise.
443 * emultempl/ppc32elf.em: Likewise.
444 * emultempl/ppc64elf.em: Likewise.
445 * emultempl/spuelf.em: Likewise.
446
ff7a0acf
AM
4472008-02-07 Alan Modra <amodra@bigpond.net.au>
448
449 * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
450 * ldfile.c (ldfile_add_library_path): Likewise.
451 * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
452 * emultempl/lnk960.em (lnk960_before_parse): Likewise.
453 * emultempl/spuelf.em (embedded_spu_file): Likewise.
454
2e444bea
AM
4552008-02-07 Alan Modra <amodra@bigpond.net.au>
456
457 * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
458 a "present" bit rather than low bit of .buf. Correct indexing
459 into _ovly_buf_table. Use relative loads and stores to access
460 overlay manager local vars.
461 * emultempl/spu_ovl.o: Regenerate.
462
bb8541b9
L
4632008-02-04 H.J. Lu <hongjiu.lu@intel.com>
464
465 PR 5715
466 * configure: Regenerated.
467
f8a52b59
BW
4682008-01-31 Marc Gauthier <marc@tensilica.com>
469
470 * configure.tgt (xtensa*-*-*): Recognize processor variants.
471
00b2bfc1
NC
4722008-01-28 Fabian Groffen <grobian@gentoo.org>
473
474 * configure.tgt (x86_64-*-solaris2): Add support for this target.
475
6e73d595
NC
4762008-01-28 Vincent Riviere <vincent.riviere@freesbee.fr>
477
478 PR ld/5652
479 * genscripts.sh: Check for the existence of BASH_LINENO not just
480 the BASH shell before generating line numbers in the emulation
481 file.
482
47f6dab9
AM
4832008-01-28 Alan Modra <amodra@bigpond.net.au>
484
485 * emultempl/spu_ovl.S: Rewrite.
486 * emultempl/spu_ovl.o: Regenerate.
487 * emultempl/spuelf.em (toe): Delete.
488 (spu_place_special_section): Add param to control section placement.
489 Adjust callers.
490 (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
491 changes.
492 (spu_before_allocation): Adjust spu_elf_size_stubs call.
493 (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
494
29183214
L
4952008-01-25 H.J. Lu <hongjiu.lu@intel.com>
496
497 PR ld/5670
498 * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
499 warning.
500
53d25da6
AM
5012008-01-25 Alan Modra <amodra@bigpond.net.au>
502
503 * ld.texinfo (INSERT): Describe.
504 * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
505 (INSERT_K, AFTER, BEFORE): Add as tokens.
506 (ifile_p1): Handle INSERT statements.
507 (saved_script_handle, force_make_executable): Move to..
508 * ldmain.c: ..here.
509 (previous_script_handle): New global var.
510 * ldmain.h (saved_script_handle, force_make_executable): Declare.
511 (previous_script_handle): Likewise.
512 * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
513 * lexsup.c (parge_args <-T>): Set previous_script_handle.
514 * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
515 (map_input_to_output_sections, print_statement): Likewise.
516 (lang_size_sections_1, lang_do_assignments_1): Likewise.
517 (insert_os_after): New function, extracted from..
518 (lang_insert_orphan): ..here.
519 (process_insert_statements): New function.
520 (lang_process): Call it.
521 (lang_add_insert): New function.
522 * ldlang.h (lang_insert_statement_enum): New.
523 (lang_insert_statement_type): New.
524 (lang_statement_union_type): Add insert_statement.
525 (lang_add_insert): Declare.
526
c19f06f2
BW
5272008-01-18 Bob Wilson <bob.wilson@acm.org>
528
529 * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
530 changes from elf.sc.
8944f3c2 531
14ac84b4
AM
5322008-01-16 Alan Modra <amodra@bigpond.net.au>
533
534 * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
535
3d00b095
AM
5362008-01-16 Alan Modra <amodra@bigpond.net.au>
537
538 * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
539 (lang_afile_asection_pair_statement_type): Delete.
540 (lang_statement_union_type): Delete afile_asection_pair_statement.
541 * ldlang.c (lang_insert_orphan): Delete case handling the above.
542 (map_input_to_output_sections, print_statement): Likewise.
543
58da7b1b
KK
5442008-01-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
545
546 * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
547 with __data_start.
548 * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
549
74f0fb50
AM
5502008-01-15 Alan Modra <amodra@bigpond.net.au>
551
552 PR 5604
553 * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
554 syms to _bfd_elf_gc_keep.
555 * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
556 ppc64_elf_edit_opd if no_opd_opt.
557
ac69cbc6
TG
5582008-01-11 Tristan Gingold <gingold@adacore.com>
559 Eric Botcazou <ebotcazou@adacore.com>
560
561 * ldlang.c (lang_end): Warns if the entry point is not found when
562 --gc-sections.
563 Emit an error if no root is specified when --gc-sections -r.
564 * ld.texinfo (Options): Document that --gc-sections is compatible
565 with -r and -q.
566 * ldmain.c (main): Do not error out if -r and --gc-sections.
567 * scripttempl/elf.sc: Emit ENTRY command only if relocating.
568
71934f94
NC
5692008-01-10 Daniel Jacobowitz <drow@sources.redhat.com>
570
571 PR ld/5533
572 * ldlang.c (lang_end): Issue a warning for a missing start symbol
573 of a shared library if the symbol was specified on the command
574 line.
575
d5465ba2
AM
5762008-01-10 Alan Modra <amodra@bigpond.net.au>
577
578 * ld.texinfo (--gc-sections): Describe linker behaviour.
579
6c7ac64e 580For older changes see ChangeLog-2007
252b5132
RH
581\f
582Local Variables:
583mode: change-log
584left-margin: 8
585fill-column: 74
586version-control: never
587End:
This page took 0.658744 seconds and 4 git commands to generate.