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