2009-02-24 Joseph Myers <joseph@codesourcery.com>
[platform/upstream/binutils.git] / ld / ChangeLog
1 2009-02-24  Joseph Myers  <joseph@codesourcery.com>
2
3         * ld.texinfo (ARM): Document changed meaning of --stub-group-size.
4         * emultempl/armelf.em (hook_in_stub): Insert after the input section.
5         (elf32_arm_add_stub_section): Update comment.
6         (PARSE_AND_LIST_OPTIONS): Update help for --stub-group-size.
7
8 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
9
10         * ld.texinfo (Options): Correct typos in example.  Recommend
11         using joined forms of syntax for passing options with arguments 
12         from a driver.
13         (-a): Use consistent syntax for documenting option arguments.
14         Clean up indexing and markup.
15         (-A/--architecture): Likewise.
16         (-f/--auxiliary): Likewise.
17         (-F/--filter): Likewise.
18         (-fini): Likewise.
19         (-G/--gpsize): Likewise.
20         (-h/-soname):Likewise.
21         (-init): Likewise.
22         (-l/--library): Likewise.
23         (-L/--library-path): Likewise.
24         (-m): Likewise.
25         (--defsym): Likewise.
26         (-I/--dynamic-linker): Likewise.
27         (-Map): Likewise.
28         (--oformat): Likewise.
29         (--retain-symbols-file): Likewise.
30         (-rpath): Likewise.
31         (-rpath-link): Likewise.
32         (--sort-common): Likewise.
33         (--sort-section): Likewise.
34         (--split-by-file): Likewise.
35         (--split-by-reloc): Likewise.
36         (--sysroot): Likewise.
37         (--section-start): Likewise.
38         (-Tbss, -Tdata, -Ttext): Likewise.
39         (-Ttext-segment): Likewise.
40         (--version-script): Likewise.
41         (--wrap): Likewise.
42
43 2009-02-18  Dave Korn  <dave.korn.cygwin@gmail.com>
44
45         * ld.texinfo:  Update to mention long section name options.
46         * NEWS:  Mention new behaviour and command-line options.
47         * pe-dll.c (pe_use_coff_long_section_names):  New global variable.
48         (pe_output_file_set_long_section_names):  New function.
49         (pe_dll_build_sections):  Call it on output BFDs.
50         (pe_exe_build_sections):  Likewise.
51         (pe_dll_fill_sections):  Likewise.
52         (pe_exe_fill_sections):  Likewise.
53         * pe-dll.h (pe_use_coff_long_section_names):  Declare extern.
54         (pe_output_file_set_long_section_names):  Add prototype.
55         * pep-dll.c (pe_use_coff_long_section_names):  Define pep_ alias.
56         (pe_output_file_set_long_section_names):  Likewise.
57         * pep-dll.h (pep_use_coff_long_section_names):  Declare extern.
58         (pep_output_file_set_long_section_names):  Add prototype.
59         * pe.em (OPTION_ENABLE_LONG_SECTION_NAMES):  New getopt value macro.
60         (OPTION_DISABLE_LONG_SECTION_NAMES):  Likewise.
61         (gld${EMULATION_NAME}_add_options):  Add new options to xtra_long[].
62         (gld_${EMULATION_NAME}_list_options):  Describe them.
63         (gld${EMULATION_NAME}_handle_option):  Set or clear global
64         pe_use_coff_long_section_names flag when options recognised.
65         (gld_${EMULATION_NAME}_after_open):  En/disable long section names
66         for main output bfd by calling pe_output_file_set_long_section_names.
67         * pep.em (enum options):  Extend enum with new getopt option values.
68         (gld${EMULATION_NAME}_add_options):  Add new options to xtra_long[].
69         (gld_${EMULATION_NAME}_list_options):  Describe them.
70         (gld${EMULATION_NAME}_handle_option):  Set or clear global
71         pe_use_coff_long_section_names flag when options recognised.
72         (gld_${EMULATION_NAME}_after_open):  En/disable long section names
73         for main output bfd by calling pep_output_file_set_long_section_names.
74
75 2009-02-16  Dave Korn  <dave.korn.cygwin@gmail.com>
76
77         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):  Don't emit
78         inadvertent .reloc sections caused by refactoring accident.
79
80 2009-02-16  Alan Modra  <amodra@bigpond.net.au>
81
82         * ldlang.c (process_insert_statements): ASSERT that output section
83         statements are in order.
84
85 2009-02-16  Alan Modra  <amodra@bigpond.net.au>
86
87         * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
88         (stat_save, stat_save_ptr): New variables.
89         (lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
90         (load_symbols): Likewise.  Delete dead "bad_load" code.
91         (open_input_bfds): Warn on script containing output sections.
92         (lang_enter_output_section_statement): Use push_stat_ptr.
93         (lang_enter_group): Likewise.
94         (lang_leave_output_section_statement): Use pop_stat_ptr.
95         (lang_leave_group): Likewise.
96         * ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
97         * ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
98         * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
99         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
100         * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
101         * emultempl/spuelf.em (spu_place_special_section): Likewise.
102         * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
103
104 2009-02-09  Nathan Sidwell  <nathan@codesourcery.com>
105
106         Missing piece of 2009-01-26 commit
107         * ldlang.c (lang_process): Don't consider relocatable flag when
108         checking for overlap.
109
110 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
111
112         * emulparams/m68kelf.sh: Add newline at end of file.
113
114 2009-02-04  Nick Clifton  <nickc@redhat.com>
115
116         PR 9805
117         * ld.texinfo (--allow-shlib-undefined): Correct description of
118         default settings and tidy up the rest of the entry.
119
120 2009-02-04  Alan Modra  <amodra@bigpond.net.au>
121
122         * emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.*
123         during relocatable link.
124
125 2009-02-03  Nick Clifton  <nickc@redhat.com>
126
127         PR 9797
128         * ld.texinfo (Constants): Document the base-encoding suffixes
129         supported in linker scripts.
130
131 2009-02-03  Alan Modra  <amodra@bigpond.net.au>
132
133         * NEWS: Mention --as-needed change.
134
135 2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>
136
137         * configure.in: AC_SUBST pdfdir.
138         * Makefile.am: Add install-pdf, install-pdf-am,
139         and install-pdf-recursive targets. Define pdf__strip_dir.
140         * po/Make-in: Add install-pdf target.
141         * configure: Regenerate.
142         * Makefile.in: Regenerate.
143
144 2009-01-31  Alan Modra  <amodra@bigpond.net.au>
145
146         * ld.texinfo (--as-needed): Update.
147
148 2009-01-29  Andrew Jenner  <andrew@codesourcery.com>
149
150         * emultempl/armelf.em: Correct formatting of help text for
151         --no-enum-size-warning option.
152
153 2009-01-26  Nathan Sidwell  <nathan@codesourcery.com>
154
155         * lexsup.c (parse_args): Set check_section_addresses to 1 or 0.
156         * ld.h (args_type): Make check_section_addresses a char.
157         * ldmain.c (main): Default check_section_addresses to -1. Check it
158         for relocatable links.
159         * ld.texinfo (--check-sections): Update documentation.
160
161 2009-01-26  Kai Tietz  <kai.tietz@onevision.com>
162
163         * pe-dll.c (tmp_seq2): New static variable.
164         (make_singleton_name_imp): New.
165         (make_import_fixup_entry): Use for v2 the _imp_<name> symbol and
166         avoid duplicate import table generation for same symbol.
167         (pe_create_runtime_relocator_reference): Make reference for
168         64-bit 8 bytes.
169
170 2009-01-21  Alan Modra  <amodra@bigpond.net.au>
171
172         * emultempl/spuelf.em (params): Init new field.
173         (OPTION_SPU_NON_IA_TEXT): Define.
174         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --non-ia-text.
175         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_SPU_NON_IA_TEXT.
176
177 2009-01-16  H.J. Lu  <hongjiu.lu@intel.com>
178
179         * lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT.
180         (ld_options): Add -Ttext-segment.
181         (parse_args): Handle OPTION_TTEXT_SEGMENT.
182
183         * ld.texinfo: Document -Ttext-segment.
184
185         * NEWS: Mention -Ttext-segment.
186
187         * scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START.
188         (SHLIB_TEXT_START_ADDR): Likewise.
189
190 2009-01-13  Alan Modra  <amodra@bigpond.net.au>
191
192         * emultempl/spu_icache.o_c: Regenerate.
193
194 2009-01-12  Alan Modra  <amodra@bigpond.net.au>
195
196         * emultempl/spuelf.em (params): Init new fields.
197         (num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars.
198         (spu_place_special_section): Adjust placement for soft-icache.  Pad
199         soft-icache section to a fixed size.  Clear addr_tree.
200         (spu_elf_load_ovl_mgr): Support soft-icache.  Map overlay manager
201         sections a little more intelligently.
202         (gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs.
203         (OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS.
204         (OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define.
205         (OPTION_SPU_LRLIVE): Define.
206         (PARSE_AND_LIST_LONGOPTS): Add new soft-icache options.
207         (PARSE_AND_LIST_OPTIONS): Likewise.
208         (PARSE_AND_LIST_ARGS_CASES): Handle them.
209         * emultempl/spu_icache.S: Dummy file.
210         * emultempl/spu_icache.o_c: Regenerate.
211         * Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c.
212         (spu_icache.o_c): Add rule to build.
213         (CLEANFILES): Zap temp files.
214         (EXTRA_DIST): Add spu_icache.o_c.
215         * Makefile.in: Regenerate.
216
217 2009-01-08  Kai Tietz  <kai.tietz@onevision.com>
218
219         * pe.em (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New.
220         (gld..._add_options): Add new option
221         --use-nul-prefixed-import-tables.
222         (gld..._handle_option): Likewise.
223         * pep.em: Same as for pe.em.
224         * ld.texinfo: Add new option documentation for
225         --use-nul-prefixed-import-tables.
226         * pe-dll.c (pe_use_nul_prefixed_import_tables): New.
227         (make_head): Make prefix leading zero prefix element for
228         idata$4 and idata$5 dependent to new flag.
229         (make_import_fixup_entry): Remove idata4/5 prefix.
230         * pe-dll.h (pe_use_nul_prefixed_import_tables): New.
231         * pep-dll.c (pe_use_nul_prefixed_import_tables): New.
232         * pep-dll.h (pep_use_nul_prefixed_import_tables): New.
233         * NEWS: Add new option.
234
235 2009-01-05  Kai Tietz  <kai.tietz@onevision.com>
236
237         * emultempl/pe.em: Prefix dollar characters to be outputed in
238         generated C file.
239         * emultempl/pep.em: Likewise.
240
241 2009-01-03  Dave Korn  <dave.korn.cygwin@gmail.com>
242
243         * NEWS:  Mention new feature --exclude-modules-for-implib.
244         * ld.texinfo:  Document new --exclude-modules-for-implib option.
245         * pe-dll.c (exclude_list_struct):  Change type member from int to
246         new enumeration exclude_type.
247         (pe_dll_add_excludes):  Accept exclude_type instead of int param.
248         (auto_export):  Replace magic constants by exclude_type values and
249         handle new choice EXCLUDEFORIMPLIB.
250         (pe_dll_generate_implib):  Accept a pointer to the link_info and
251         iterate all input BFDs looking for EXCLUDEFORIMPLIB modules; re-open
252         fresh BFDs for any found and link into import lib archive chain.
253         * pe-dll.h (exclude_type):  Add new enumerated type to replace magic
254         constants previously used for exclude_list_struct type member.
255         (pe_dll_add_excludes, pe_dll_generate_implib):  Update prototypes.
256         * pep-dll.h (exclude_type, pe_dll_add_excludes,
257         pe_dll_generate_implib):  Likewise to all the above.
258         * emultempl/pe.em (OPTION_EXCLUDE_MODULES_FOR_IMPLIB):  Define new
259         getopts long option code for new --exclude-modules-for-implib option.
260         (gld${EMULATION_NAME}_add_options):  Add new entry to xtra_long[].
261         (gld_${EMULATION_NAME}_list_options):  List usage for it.
262         (gld${EMULATION_NAME}_handle_option):  Use exclude_type enumerated
263         values when calling pe_dll_add_excludes, and handle EXCLUDEFORIMPLIB.
264         (gld_${EMULATION_NAME}_finish):  Pass pointer to link_info when
265         calling pe_dll_generate_implib.
266         * emultempl/pep.em (options):  Define new enumerated value for getopts
267         long option code for new --exclude-modules-for-implib option.
268         (gld${EMULATION_NAME}_add_options, gld_${EMULATION_NAME}_list_options,
269         gld${EMULATION_NAME}_handle_option, gld_${EMULATION_NAME}_finish):
270         Again, likewise to all the above.
271
272 2009-01-03  Dave Korn  <dave.korn.cygwin@gmail.com>
273
274         * pe-dll.c (autofilter_liblist):  Add entry for shared libgcc.
275         (libnamencmp):  New function.
276         (auto_export):  Use it in place of strncmp when filtering libraries.
277
278 For older changes see ChangeLog-2008
279 \f
280 Local Variables:
281 mode: change-log
282 left-margin: 8
283 fill-column: 74
284 version-control: never
285 End: