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