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