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