PR ld/5652
[binutils-gdb.git] / ld / ChangeLog
1 2008-01-28 Vincent Riviere <vincent.riviere@freesbee.fr>
2
3 PR ld/5652
4 * genscripts.sh: Check for the existence of BASH_LINENO not just
5 the BASH shell before generating line numbers in the emulation
6 file.
7
8 2008-01-28 Alan Modra <amodra@bigpond.net.au>
9
10 * emultempl/spu_ovl.S: Rewrite.
11 * emultempl/spu_ovl.o: Regenerate.
12 * emultempl/spuelf.em (toe): Delete.
13 (spu_place_special_section): Add param to control section placement.
14 Adjust callers.
15 (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
16 changes.
17 (spu_before_allocation): Adjust spu_elf_size_stubs call.
18 (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
19
20 2008-01-25 H.J. Lu <hongjiu.lu@intel.com>
21
22 PR ld/5670
23 * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
24 warning.
25
26 2008-01-25 Alan Modra <amodra@bigpond.net.au>
27
28 * ld.texinfo (INSERT): Describe.
29 * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
30 (INSERT_K, AFTER, BEFORE): Add as tokens.
31 (ifile_p1): Handle INSERT statements.
32 (saved_script_handle, force_make_executable): Move to..
33 * ldmain.c: ..here.
34 (previous_script_handle): New global var.
35 * ldmain.h (saved_script_handle, force_make_executable): Declare.
36 (previous_script_handle): Likewise.
37 * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
38 * lexsup.c (parge_args <-T>): Set previous_script_handle.
39 * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
40 (map_input_to_output_sections, print_statement): Likewise.
41 (lang_size_sections_1, lang_do_assignments_1): Likewise.
42 (insert_os_after): New function, extracted from..
43 (lang_insert_orphan): ..here.
44 (process_insert_statements): New function.
45 (lang_process): Call it.
46 (lang_add_insert): New function.
47 * ldlang.h (lang_insert_statement_enum): New.
48 (lang_insert_statement_type): New.
49 (lang_statement_union_type): Add insert_statement.
50 (lang_add_insert): Declare.
51
52 2008-01-18 Bob Wilson <bob.wilson@acm.org>
53
54 * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
55 changes from elf.sc.
56
57 2008-01-16 Alan Modra <amodra@bigpond.net.au>
58
59 * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
60
61 2008-01-16 Alan Modra <amodra@bigpond.net.au>
62
63 * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
64 (lang_afile_asection_pair_statement_type): Delete.
65 (lang_statement_union_type): Delete afile_asection_pair_statement.
66 * ldlang.c (lang_insert_orphan): Delete case handling the above.
67 (map_input_to_output_sections, print_statement): Likewise.
68
69 2008-01-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
70
71 * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
72 with __data_start.
73 * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
74
75 2008-01-15 Alan Modra <amodra@bigpond.net.au>
76
77 PR 5604
78 * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
79 syms to _bfd_elf_gc_keep.
80 * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
81 ppc64_elf_edit_opd if no_opd_opt.
82
83 2008-01-11 Tristan Gingold <gingold@adacore.com>
84 Eric Botcazou <ebotcazou@adacore.com>
85
86 * ldlang.c (lang_end): Warns if the entry point is not found when
87 --gc-sections.
88 Emit an error if no root is specified when --gc-sections -r.
89 * ld.texinfo (Options): Document that --gc-sections is compatible
90 with -r and -q.
91 * ldmain.c (main): Do not error out if -r and --gc-sections.
92 * scripttempl/elf.sc: Emit ENTRY command only if relocating.
93
94 2008-01-10 Daniel Jacobowitz <drow@sources.redhat.com>
95
96 PR ld/5533
97 * ldlang.c (lang_end): Issue a warning for a missing start symbol
98 of a shared library if the symbol was specified on the command
99 line.
100
101 2008-01-10 Alan Modra <amodra@bigpond.net.au>
102
103 * ld.texinfo (--gc-sections): Describe linker behaviour.
104
105 For older changes see ChangeLog-2007
106 \f
107 Local Variables:
108 mode: change-log
109 left-margin: 8
110 fill-column: 74
111 version-control: never
112 End: