bfd/
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2012-04-03 Roland McGrath <mcgrathr@google.com>
2
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):
12 New targets.
13 * Makefile.in: Regenerated.
14
15 * scripttempl/elf.sc: Handle SEPARATE_CODE cases.
16
17 2012-04-02 Mike Frysinger <vapier@gentoo.org>
18
19 * ldmisc.c (vfinfo): Assign new local str to fmt. Delete
20 putc call. If str and fmt are different, call fwrite on
21 the difference.
22
23 2012-03-30 Nick Clifton <nickc@redhat.com>
24
25 * po/vi.po: Updated Vietnamese translation.
26
27 2012-03-27 Roland McGrath <mcgrathr@google.com>
28
29 * configure.in: Set want64 on a 64-bit host regardless of
30 --enable-targets=all.
31 * configure: Regenerated.
32
33 2012-03-26 Tristan Gingold <gingold@adacore.com>
34
35 * lexsup.c (parse_args): Add a missing '\n'.
36
37 2012-03-25 Alan Modra <amodra@gmail.com>
38
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.
43
44 2012-03-23 Alan Modra <amodra@gmail.com>
45
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.
49
50 2012-03-14 Kai Tietz <ktietz@redhat.com>
51 Pascal Obry <pascal@obry.net>
52
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.
63
64 2012-03-14 Alan Modra <amodra@gmail.com>
65
66 PR ld/13839
67 * ldexp.c (fold_name): Ignore undefined symbols when assigning to
68 dot in mark phase.
69 (exp_fold_tree_1): Evaluate assignment to dot expressions even when
70 discarding result, for side effects. Fix typo in error message.
71
72 2012-03-08 Tristan Gingold <gingold@adacore.com>
73
74 * ldexp.c (exp_print_tree): Special case for SEGMENT_START.
75 (exp_print_token): Constify.
76
77 2012-03-08 Alan Modra <amodra@gmail.com>
78
79 PR ld/10340
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
92 comment.
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.
98
99 2012-03-06 Alan Modra <amodra@gmail.com>
100
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
114 from here.
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
135 file processing.
136 * ldfile.c (is_sysrooted_pathname): Tidy.
137
138 2012-03-05 Hans-Peter Nilsson <hp@axis.com>
139
140 * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
141 (mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by
142 replacing trailing "-*" with "*".
143
144 2012-02-25 Walter Lee <walt@tilera.com>
145
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.
152 (tilegxbe-*-*): New.
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.
161
162 2012-02-24 Kai Tietz <ktietz@redhat.com>
163
164 PR binutils/13710
165 * deffilep.y (keyword_as_name): Disable LIBRARY
166 keyword.
167
168 2012-02-22 Alan Modra <amodra@gmail.com>
169
170 PR ld/13683
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
177 phases.
178 * ldexp.h (enum lang_phase_type): Add descriptions of the phases.
179
180 2012-02-19 Kai Tietz <ktietz@redhat.com>
181
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
186 allocated memory.
187 (pe_implied_import_dll): Pass NULL instead of 0 for pointer
188 argument.
189
190 2012-02-18 Hans-Peter Nilsson <hp@axis.com>
191
192 * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
193 temporary variable node used for NULL argument.
194
195 2012-02-18 Alan Modra <amodra@gmail.com>
196
197 PR ld/13343
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
202 fudge lineno.
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.
227
228 2012-02-13 Kai Tietz <ktietz@redhat.com>
229
230 * deffilep.y (find_export_in_list): Set is_indent for
231 first or last element, if identical.
232 (find_import_in_list): Likewise.
233
234 2012-02-11 Kai Tietz <ktietz@redhat.com>
235
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.
242
243 2012-02-11 Pascal Obry <pascal@obry.net>
244
245 * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
246 table.
247 (process_def_file_and_drectve): Maintain sorting of exports table
248 after stripping leading @ signs.
249
250 2012-02-09 Alan Modra <amodra@gmail.com>
251
252 * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
253
254 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
255
256 PR ld/13616
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.
265
266 * ldlang.c (zero_fill): Initialized to 0.
267
268 * ldwrite.c (build_link_order): Set data size to linker odrder
269 size when they are the same.
270
271 * scripttempl/elf.sc: Don't specify fill if NOP is undefined.
272
273 2012-01-17 Alan Modra <amodra@gmail.com>
274
275 * ldver.c (ldversion): Update copyright message year.
276
277 2012-01-15 Alan Modra <amodra@gmail.com>
278
279 PR ld/12758
280 * ldlang.c (lang_process): Don't reopen all files, just those
281 newly added by plugin.
282
283 2012-01-11 Alan Modra <amodra@gmail.com>
284
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
288 --{no-,}plt-align.
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
293 undocumented option.
294
295 2012-01-09 Roland McGrath <mcgrathr@google.com>
296
297 * configure.in: Use AM_ZLIB.
298 * configure: Regenerated.
299
300 For older changes see ChangeLog-2011
301 \f
302 Local Variables:
303 mode: change-log
304 left-margin: 8
305 fill-column: 74
306 version-control: never
307 End:
This page took 0.038736 seconds and 4 git commands to generate.