1 2012-04-03 Roland McGrath <mcgrathr@google.com>
3 * configure.tgt (i[3-7]86-*-nacl*, x86_64-*-nacl*): Handle them.
4 * emulparams/elf_nacl.sh: New file.
5 * emulparams/elf_i386_nacl.sh: New file.
6 * emulparams/elf32_x86_64_nacl.sh: New file.
7 * emulparams/elf_x86_64_nacl.sh: New file.
8 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_i386_nacl.c here.
9 (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64_nacl.c and
10 eelf_x86_64_nacl.c here.
11 (eelf_i386_nacl.c, eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c):
13 * Makefile.in: Regenerated.
15 * scripttempl/elf.sc: Handle SEPARATE_CODE cases.
17 2012-04-02 Mike Frysinger <vapier@gentoo.org>
19 * ldmisc.c (vfinfo): Assign new local str to fmt. Delete
20 putc call. If str and fmt are different, call fwrite on
23 2012-03-30 Nick Clifton <nickc@redhat.com>
25 * po/vi.po: Updated Vietnamese translation.
27 2012-03-27 Roland McGrath <mcgrathr@google.com>
29 * configure.in: Set want64 on a 64-bit host regardless of
31 * configure: Regenerated.
33 2012-03-26 Tristan Gingold <gingold@adacore.com>
35 * lexsup.c (parse_args): Add a missing '\n'.
37 2012-03-25 Alan Modra <amodra@gmail.com>
39 * ldemul.c (before_allocation_default): Revert last change.
40 ldlang.c (lang_add_section): Likewise.
41 (strip_excluded_output_sections): Don't strip output sections with
42 user input sections when emitrelocations, unless all are SEC_EXCLUDE.
44 2012-03-23 Alan Modra <amodra@gmail.com>
46 * ldemul.c (before_allocation_default): When emitrelocations,
47 don't strip sections..
48 * ldlang.c (lang_add_section): ..and don't set up map_head, map_tail.
50 2012-03-14 Kai Tietz <ktietz@redhat.com>
51 Pascal Obry <pascal@obry.net>
53 * pe-dll.c (found_sym): New static variable.
54 (undef_count): Likewise.
55 (key_value): New structure.
56 (undef_sort_cmp): Compare routine for qsort/bsearch.
57 (pe_find_cdecl_alias_match): Add new argument.
58 (pe_undef_alias_cdecl_match): Removed.
59 (pe_undef_count): New helper routine.
60 (pe_create_undef_table): Likewise.
61 (pe_process_import_defs): Use pe_create_undef_table and
62 new pe_undef_alias_cdecl_match function.
64 2012-03-14 Alan Modra <amodra@gmail.com>
67 * ldexp.c (fold_name): Ignore undefined symbols when assigning to
69 (exp_fold_tree_1): Evaluate assignment to dot expressions even when
70 discarding result, for side effects. Fix typo in error message.
72 2012-03-08 Tristan Gingold <gingold@adacore.com>
74 * ldexp.c (exp_print_tree): Special case for SEGMENT_START.
75 (exp_print_token): Constify.
77 2012-03-08 Alan Modra <amodra@gmail.com>
80 * ldfile.c (is_sysrooted_pathname): Remove notsame param.
81 (ldfile_add_library_path): Don't set sysrooted flag.
82 (ldfile_open_file_search): Likewise, and don't copy them.
83 (try_open): Delete exten and code handling such. Add sysrooted
84 param and return whether path is in sysroot.
85 (ldfile_find_command_file): Delete extend param. Add sysrooted
86 param. Rename local var. Update try_open calls.
87 (ldfile_open_command_file_1): Pass sysrooted to lex_push_file.
88 * ldfile.h (search_dirs_type): Remove sysrooted field.
89 * ldlang.c (new_afile): Always set sysrooted from input_flags.
90 (load_symbols): Don't set input_flags.sysrooted.
91 * ldlang.h (struct lang_input_statement_flags): Revise sysrooted
93 * ldlex.h (lex_push_file): Update prototype.
94 * ldlex.l (sysrooted_stack): New array.
95 (EOF): Pop input_flags.sysrooted.
96 (lex_push_file): Add sysrooted param. Save and set
97 input_flags.sysrooted.
99 2012-03-06 Alan Modra <amodra@gmail.com>
101 * ldlang.h (struct lang_input_statement_flags): New, extract from..
102 (lang_input_statement_type): ..here. New field "flags".
103 (input_flags): Declare.
104 (missing_file): Delete.
105 * ldmain.h (whole_archive): Delete.
106 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
107 * ld.h (ld_config_type <dynamic_link>): Delete.
108 * ldmain.c (whole_archive): Delete.
109 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
110 * ldlang.c (missing_file, ldlang_sysrooted_script): Delete.
111 (input_flags): New variable. Replace all uses of config.dynamic_link,
112 missing_file, ldlang_sysrooted_script, whole_archive,
113 add_DT_NEEDED_for_regular and add_DT_NEEDED_for_dynamic with fields
115 * ldfile.c: Likewise.
116 * ldgram.y: Likewise.
117 * ldmain.c: Likewise.
118 * ldwrite.c: Likewise.
119 * lexsup.c: Likewise.
120 * plugin.c: Likewise.
121 * emultempl/aix.em: Likewise.
122 * emultempl/armelf.em: Likewise.
123 * emultempl/elf32.em: Likewise.
124 * emultempl/hppaelf.em: Likewise.
125 * emultempl/linux.em: Likewise.
126 * emultempl/pe.em: Likewise.
127 * emultempl/pep.em: Likewise.
128 * emultempl/ppc64elf.em: Likewise.
129 * emultempl/scoreelf.em: Likewise.
130 * emultempl/spuelf.em: Likewise.
131 * emultempl/sunos.em: Likewise.
132 * emultempl/vms.em: Likewise.
133 * ldlang.c (new_afile): Use memset to init zero fields.
134 (load_symbols): Simplify save and restore of flags around command
136 * ldfile.c (is_sysrooted_pathname): Tidy.
138 2012-03-05 Hans-Peter Nilsson <hp@axis.com>
140 * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
141 (mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by
142 replacing trailing "-*" with "*".
144 2012-02-25 Walter Lee <walt@tilera.com>
146 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c.
147 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c.
148 (eelf32tilegx_be.c): Add rule to build this file.
149 (eelf64tilegx_be.c): Ditto.
150 * Makefile.in: Regenerate.
151 * configure.tgt (tilegx-*-*): Support big endian.
153 * emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename.
154 (BIG_OUTPUT_FORMAT): Define.
155 (LITTLE_OUTPUT_FORMAT): Define.
156 * emulparams/elf32tilegx_be.sh: New.
157 * emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename.
158 (BIG_OUTPUT_FORMAT): Define.
159 (LITTLE_OUTPUT_FORMAT): Define.
160 * emulparams/elf64tilegx_be.sh: New.
162 2012-02-24 Kai Tietz <ktietz@redhat.com>
165 * deffilep.y (keyword_as_name): Disable LIBRARY
168 2012-02-22 Alan Modra <amodra@gmail.com>
171 * ldlang.c (lang_process): Rerun lang_do_assignments before
172 starting garbage collection.
173 * ldexp.c (fold_name): Generate a reloc for defined symbols
174 found without an associated output section during the mark phase.
175 (exp_fold_tree_1): Continue processing an expression, even if we
176 are unable to fold it, if we are in the first two evaluation
178 * ldexp.h (enum lang_phase_type): Add descriptions of the phases.
180 2012-02-19 Kai Tietz <ktietz@redhat.com>
182 * deffilep.y (cmp_import_elem): Sort first by module name.
183 * pe-dll.c (process_def_file_and_drectve): Free strings
184 from removed export-element.
185 (add_bfd_to_link): Optimize loop on import-elements and lower
187 (pe_implied_import_dll): Pass NULL instead of 0 for pointer
190 2012-02-18 Hans-Peter Nilsson <hp@axis.com>
192 * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
193 temporary variable node used for NULL argument.
195 2012-02-18 Alan Modra <amodra@gmail.com>
198 * ld.h (parsing_defsym): Delete.
199 * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
200 (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
201 exp_get_abs_int): Add tree arg for %S in error messages. Don't
203 (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
204 type.filename from sub-tree.
205 (exp_trinop): Likewise, and use "cond" rather than "lhs".
206 * ldexp.h (node_type): Add filename field to struct.
207 * ldfile.c (ldfile_input_filename): Delete. Remove all refs.
208 * ldfile.h (ldfile_input_filename): Delete.
209 * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
210 %S in error messages.
211 * ldemul.c (syslib_default, hll_default): Likewise.
212 * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
213 lang_get_regions, lang_new_phdr): Likewise.
214 (lang_size_sections_1): Pass addr_tree for %S.
215 * ldlex.h (lex_redirect): Update prototype.
216 (ldlex_filename): Declare.
217 * ldlex.l (<EOF>): Don't set ldfile_input_filename.
218 (lex_redirect): Add fake_filename and count params. Push
219 fake_filename to file_name_stack and init lineno from count.
220 (ldlex_filename): New function.
221 (lex_warn_invalid): Use above.
222 * ldmain.c (main): Update lex_redirect call.
223 * ldmisc.c (vfinfo <%S>): Take file name and line number from
224 etree_type arg, or use current if arg is NULL.
225 * lexsup.c (parsing_defsym): Delete.
226 (parse_args <OPTION_DEFSYM>): Update lex_redirect call.
228 2012-02-13 Kai Tietz <ktietz@redhat.com>
230 * deffilep.y (find_export_in_list): Set is_indent for
231 first or last element, if identical.
232 (find_import_in_list): Likewise.
234 2012-02-11 Kai Tietz <ktietz@redhat.com>
236 * deffilep.y (%union): New type id_const.
237 (opt_name2): New rule.
238 (keyword_as_name): New rule.
239 (dot_name): Replaced by opt_name2 rule.
240 (opt_name): Adjust rule.
241 (opt_equal_name): Likewise.
243 2012-02-11 Pascal Obry <pascal@obry.net>
245 * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
247 (process_def_file_and_drectve): Maintain sorting of exports table
248 after stripping leading @ signs.
250 2012-02-09 Alan Modra <amodra@gmail.com>
252 * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
254 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
257 * emulparams/elf32_x86_64.sh: Remove NOP.
258 * emulparams/elf_i386.sh: Likewise.
259 * emulparams/elf_i386_be.sh: Likewise.
260 * emulparams/elf_i386_ldso.sh: Likewise.
261 * emulparams/elf_i386_vxworks.sh: Likewise.
262 * emulparams/elf_k1om.sh: Likewise.
263 * emulparams/elf_l1om.sh: Likewise.
264 * emulparams/elf_x86_64.sh: Likewise.
266 * ldlang.c (zero_fill): Initialized to 0.
268 * ldwrite.c (build_link_order): Set data size to linker odrder
269 size when they are the same.
271 * scripttempl/elf.sc: Don't specify fill if NOP is undefined.
273 2012-01-17 Alan Modra <amodra@gmail.com>
275 * ldver.c (ldversion): Update copyright message year.
277 2012-01-15 Alan Modra <amodra@gmail.com>
280 * ldlang.c (lang_process): Don't reopen all files, just those
281 newly added by plugin.
283 2012-01-11 Alan Modra <amodra@gmail.com>
285 * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE,
286 PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
287 PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and
289 (plt_thread_safe, plt_stub_align): New vars.
290 (gld${EMULATION_NAME}_after_allocation): Pass them to
291 ppc64_elf_size_stubs. Align stub sections according to plt_stub_align.
292 * ld.texinfo: Document new command line options, and an old
295 2012-01-09 Roland McGrath <mcgrathr@google.com>
297 * configure.in: Use AM_ZLIB.
298 * configure: Regenerated.
300 For older changes see ChangeLog-2011
306 version-control: never