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