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