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