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