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