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