* ld-elf/foo0.s: Use ARM-compatible .section syntax.
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2012-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2
3 * emulparams/elf_s390.sh (IREL_IN_PLT): Define.
4 * emulparams/elf64_s390.sh (IREL_IN_PLT): Define.
5
6 2012-07-13 Nick Clifton <nickc@redhat.com>
7
8 PR ld/14357
9 * ldmain.c (trace_file_tries): Rename to 'verbose'.
10 * ldfile.c: Likewise.
11 * ldlang.c: Likewise.
12 * ldmain.h: Likewise.
13 * lexsup.c: Likewise.
14 * emultempl/elf32.em: Likewise.
15 * emultemp/spuelf.em: Likewise.
16 * pe-dll.c (pe_dll_generate_implib): Only print creation message
17 in verbose mode.
18
19 2012-07-10 H.J. Lu <hongjiu.lu@intel.com>
20
21 PR ld/14156
22 * NEWS: Mention SORT_NONE.
23
24 * ld.h (sort_type): Add by_none.
25
26 * ld.texinfo: Document SORT_NONE.
27
28 * ldgram.y: Handle SORT_NONE.
29
30 * ldlang.c (update_wild_statements): Handle by_none. Don't
31 sort .init/.fini sections.
32
33 * ldlex.l: Add SORT_NONE.
34
35 2012-07-02 H.J. Lu <hongjiu.lu@intel.com>
36
37 * ld.texinfo: Replace __end_SECNAME with __stop_SECNAME.
38
39 2012-06-29 Nick Clifton <nickc@redhat.com>
40
41 * scripttempl/alphavms.sc: Add .debug_macro section.
42 * scripttempl/elf.sc: Likewise.
43 * scripttempl/elf64hppa.sc: Likewise.
44 * scripttempl/elf_chaos.sc: Likewise.
45 * scripttempl/elfxtensa.sc: Likewise.
46 * scripttempl/ia64vms.sc: Likewise.
47
48 * scripttempl/armbpabi.sc: Add .debug_pubtypes, .debug_ranges and
49 .debug_macro sections.
50 * scripttempl/avr.sc: Likewise.
51 * scripttempl/elf32cr16.sc: Likewise.
52 * scripttempl/elf32crx.sc: Likewise.
53 * scripttempl/elf32msp430.sc: Likewise.
54 * scripttempl/elf32msp430_3.sc: Likewise.
55 * scripttempl/elf32sh-symbian.sc: Likewise.
56 * scripttempl/elfd30v.sc: Likewise.
57 * scripttempl/elfi370.sc: Likewise.
58 * scripttempl/elfm68hc11.sc: Likewise.
59 * scripttempl/elfm68hc12.sc: Likewise.
60 * scripttempl/elfxgate.sc: Likewise.
61 * scripttempl/i386beos.sc: Likewise.
62 * scripttempl/i386go32.sc: Likewise.
63 * scripttempl/ip2k.sc: Likewise.
64 * scripttempl/iq2000.sc: Likewise.
65 * scripttempl/mep.sc: Likewise.
66 * scripttempl/mmo.sc: Likewise.
67 * scripttempl/v850.sc: Likewise.
68 * scripttempl/xstormy16.sc: Likewise.
69
70 2012-06-28 H.J. Lu <hongjiu.lu@intel.com>
71
72 * ldlang.c (update_wild_statements): Remove redundant statement.
73
74 2012-06-25 Alan Modra <amodra@gmail.com>
75
76 * ldlang.c (load_symbols): Close file and set flags.loaded
77 after parsing script file.
78 (open_input_bfds): Don't segv on closed script.
79
80 2012-06-24 H.J. Lu <hongjiu.lu@intel.com>
81
82 * configure.tgt: Enable elf_k1om for x86_64-*-linux-gnux32.
83 Remove x32 in tdir_i386linux and tdir_elf_i386.
84
85 2012-06-22 Roland McGrath <mcgrathr@google.com>
86
87 * NEWS: Mention __ehdr_start.
88
89 2012-06-21 Alan Modra <amodra@gmail.com>
90
91 * ldlang.c (lang_insert_orphan): Don't make __start_<sec> symbol
92 absolute, and remove unnecessary alignment.
93
94 2012-06-16 Alan Modra <amodra@gmail.com>
95
96 * ldlang.h (lang_output_section_statement_type): Add after_end field.
97 (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
98 (section_for_dot): Declare.
99 * ldlang.c (lang_size_sections_1): Correct comment.
100 (current_section): Move earlier.
101 (current_assign, prefer_next_section): New static vars.
102 (lang_do_assignments_1): Add found_end param. Detect _end
103 assignment to set found_end. Set os->after_end. Set above statics.
104 (lang_do_assignments): Adjust lang_do_assignments_1 call. Init
105 vars.
106 (section_for_dot): New function.
107 (lang_set_startof): Don't make an absolute symbol.
108 (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
109 * ldexp.c (new_rel_from_abs): Use section_for_dot.
110 * emultempl/lnk960.em (symbol_at_beginning_of): New function.
111 (symbol_at_end_of): Likewise.
112 (lnk960_after_allocation): Use them.
113 * scripttempl/elf.sc: Precede OTHER_GOT_SYMBOLS with . = .; and
114 likewise before __bss_start.
115
116 2012-06-14 H.J. Lu <hongjiu.lu@intel.com>
117
118 * plugin.c (set_tv_header): Handle link_info.pie.
119
120 2012-06-11 Alan Modra <amodra@gmail.com>
121
122 PR ld/14215
123 * ldexp.c (fold_name <SIZEOF, ALIGNOF>): Allow forward section
124 references.
125 * emulparams/elf32_x86_64.sh (SEPARATE_GOTPLT): Depend on size of
126 .got.plt.
127 * emulparams/elf32mb_linux.sh (SEPARATE_GOTPLT): Likewise.
128 * emulparams/elf32tilegx.sh (SEPARATE_GOTPLT): Likewise.
129 * emulparams/elf32tilepro.sh (SEPARATE_GOTPLT): Likewise.
130 * emulparams/elf64tilegx.sh (SEPARATE_GOTPLT): Likewise.
131 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Likewise.
132 * emulparams/elf_k1om.sh (SEPARATE_GOTPLT): Likewise.
133 * emulparams/elf_l1om.sh (SEPARATE_GOTPLT): Likewise.
134 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Likewise.
135
136 2012-06-07 Georg-Johann Lay <avr@gjlay.de>
137
138 PR 13697
139 * scripttempl/avr.sc (.data): Keep it.
140
141 2012-06-02 Andreas Schwab <schwab@linux-m68k.org>
142
143 * Makefile.am (TEXINFO_TEX): Remove $(top_srcdir) prefix.
144 * Makefile.in: Regenerate.
145
146 2012-05-30 Alan Modra <amodra@gmail.com>
147
148 * ldlang.h (lang_output_section_statement_type): Rename
149 "section_relative_symbol" field to "update_dot".
150 * ldlang.c: Update all uses.
151 (strip_excluded_output_sections): Don't test update_dot_tree here..
152 (lang_leave_overlay): ..set update_dot here.
153
154 2012-05-26 Alan Modra <amodra@gmail.com>
155
156 * ldlex.h (enum option_values): Move from..
157 * lexsup.c: ..here.
158 * emultempl/ppc32elf.em: Include ldlex.h.
159 (PARSE_AND_LIST_ARGS_CASES): Disable optimisations when
160 --traditional-format.
161 * emultempl/ppc64elf.em: Likewise.
162
163 2012-05-25 Alan Modra <amodra@gmail.com>
164
165 PR ld/13909
166 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Handle
167 multiple .eh_frame sections attached to bfd.
168
169 2012-05-23 Cary Coutant <ccoutant@google.com>
170
171 * scripttempl/armbpabi.sc: Match .data.rel.ro.* sections more
172 carefully. Fix typo where .rela.data.rel.ro matches
173 .rel.data.rel.ro.
174 * scripttempl/mep.sc: Likewise.
175 * scripttempl/elf.sc: Match .data.rel.ro.* sections more carefully.
176 * scripttempl/elf64hppa.sc: Likewise.
177 * scripttempl/elfxtensa.sc: Likewise.
178
179 2012-05-17 Daniel Richard G. <skunk@iskunk.org>
180 Nick Clifton <nickc@redhat.com>
181
182 PR 14072
183 * configure.in: Add check that sysdep.h has been included before
184 any system header files.
185 * configure: Regenerate.
186 * config.in: Regenerate.
187 * sysdep.h: Generate an error if included before config.h.
188
189 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
190
191 * emultempl/m68hc1xelf.em (hook_in_stub): Pass proper `bfd'
192 as the first argument for `bfd_get_section_name'.
193
194 2012-05-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
195
196 PR ld/14069
197 * emultempl/elf32.em: Include *-*-gnu* targets in ld.so.conf
198 support.
199
200 2012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
201
202 * NEWS: Mention the support for S12X processors.
203
204 2012-05-14 James Lemke <jwlemke@codesourcery.com>
205
206 * ldlang.c (walk_wild_consider_section): Don't copy section_flag_list.
207 Pass it to callback.
208 (walk_wild_section_general): Pass section_flag_list to callback.
209 (lang_add_section): Add sflag_list parm.
210 Move out logic to keep / omit a section & call bfd_lookup_section_flags.
211 (output_section_callback_fast): Add sflag_list parm.
212 Add new parm to lang_add_section calls.
213 (output_section_callback): Likewise.
214 (check_section_callback): Add sflag_list parm.
215 (lang_place_orphans): Add new parm to lang_add_section calls.
216 (gc_section_callback): Add sflag_list parm.
217 (find_relro_section_callback): Likewise.
218 * ldlang.h (callback_t): Add flag_info parm.
219 (lang_add_section): Add sflag_list parm.
220 * emultempl/armelf.em (elf32_arm_add_stub_section):
221 Add lang_add_section parm.
222 * emultempl/beos.em (gld*_place_orphan): Likewise.
223 * emultempl/elf32.em (gld*_place_orphan): Likewise.
224 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
225 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
226 * emultempl/mipself.em (mips_add_stub_section): Likewise.
227 * emultempl/mmo.em (mmo_place_orphan): Likewise.
228 * emultempl/pe.em (gld_*_place_orphan): Likewise.
229 * emultempl/pep.em (gld_*_place_orphan): Likewise.
230 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
231 * emultempl/spuelf.em (spu_place_special_section): Likewise.
232 * emultempl/vms.em (vms_place_orphan): Likewise.
233
234 2012-05-14 Catherine Moore <clm@codesourcery.com>
235
236 * NEWS: Mention PowerPC VLE port.
237
238 2012-05-11 Daniel Richard G. <skunk@iskunk.org>
239
240 PR binutils/14028
241 * configure.in: Invoke ACX_HEADER_STRING.
242 * configure: Regenerate.
243 * config.in: Regenerate.
244 * sysdep.h: If STRINGS_WITH_STRING is defined then include both
245 string.h and strings.h.
246
247 2012-05-08 Alan Modra <amodra@gmail.com>
248
249 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
250 LC and LANG environment vars.
251 * Makefile.in: Regenerate.
252
253 2012-05-07 Tristan Gingold <gingold@adacore.com>
254
255 * pe-dll.c (udef_table): Make it static.
256
257 2012-05-05 Alan Modra <amodra@gmail.com>
258
259 * pe-dll.c (process_def_file_and_drectve): Use bfd_und_section_ptr.
260 (generate_reloc): Use bfd_abs_section_ptr.
261
262 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
263
264 * configure.tgt: Support x86_64-*-linux-gnux32.
265
266 2012-05-03 Sean Keys <skeys@ipdatasys.com>
267
268 * Makefile.am (ALL_EMULATIONS): Added new emulation for XGATE
269 and XGATE (elf).
270 * Makefile.in: Rebuild.
271 * configure.tgt: Recognize XGATE.
272 * scripttempl/elfxgate.sc: New file, mostly cloned from m68hc12.
273 * emulparams/xgateelf: New emulation, mostly cloned from m68hc12.
274 * NEWS: Mention new support.
275
276 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
277
278 Make bfd asserts cause linker errors.
279 * ldmain.c (default_bfd_assert_handler): New variable.
280 (ld_bfd_assert_handler): New function.
281 (main): Call bfd_set_assert_handler.
282
283 2012-04-24 Alan Modra <amodra@gmail.com>
284
285 * ldlang.c (size_input_section): Use sec_info_type rather than
286 usrdata->flags.just_syms.
287 * ldwrite.c (build_link_order): Likewise.
288 * emultempl/hppaelf.em (build_section_lists): Likewise.
289 * emultempl/ppc64elf.em (build_toc_list): Likewise.
290 * emultempl/armelf.em (build_section_lists): Likewise.
291 (after_allocation): Update for renamed sec_info_type value.
292 * emultempl/tic6xdsbt.em: Likewise.
293
294 2012-04-12 Roland McGrath <mcgrathr@google.com>
295
296 * configure.tgt (arm*-*-nacl*, arm*b-*-nacl*): Handle them.
297 * emulparams/armelf_nacl.sh: New file.
298 * emulparams/armelfb_nacl.sh: New file.
299 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelf_nacl.c
300 and earmelfb_nacl.c here.
301 (earmelf_nacl.c, earmelfb_nacl.c): New targets.
302 * Makefile.in: Regenerated.
303
304 2012-04-11 Tristan Gingold <gingold@adacore.com>
305
306 * scripttempl/ia64vms.sc: New file.
307 * emultempl/vms.em (_before_parse): Support for ia64.
308 (elf64-ia64-vms): New fragment for ia64.
309 * emulparams/elf64_ia64_vms.sh: New file.
310 * configure.tgt (ia64-*-*vms*): Add.
311 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64_ia64_vms.c
312 (eelf64_ia64_vms.c): New rule.
313 * Makefile.in: Regenerate.
314
315 2012-04-06 Roland McGrath <mcgrathr@google.com>
316
317 * configure.in (AC_CHECK_HEADERS): Add locale.h.
318 * config.in: Regenerate.
319 * configure: Regenerate.
320
321 2012-04-05 Nick Clifton <nickc@redhat.com>
322
323 * configure.in (AC_CHECK_FUNCS): Add setlocale.
324 (AM_LC_MESSAGES): Add.
325 * aclocal.m4: Regenerate.
326 * config.in: Regenerate.
327 * configure: Regenerate.
328
329 2012-04-03 Roland McGrath <mcgrathr@google.com>
330
331 * configure.tgt (i[3-7]86-*-nacl*, x86_64-*-nacl*): Handle them.
332 * emulparams/elf_nacl.sh: New file.
333 * emulparams/elf_i386_nacl.sh: New file.
334 * emulparams/elf32_x86_64_nacl.sh: New file.
335 * emulparams/elf_x86_64_nacl.sh: New file.
336 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_i386_nacl.c here.
337 (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64_nacl.c and
338 eelf_x86_64_nacl.c here.
339 (eelf_i386_nacl.c, eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c):
340 New targets.
341 * Makefile.in: Regenerated.
342
343 * scripttempl/elf.sc: Handle SEPARATE_CODE cases.
344
345 2012-04-02 Mike Frysinger <vapier@gentoo.org>
346
347 * ldmisc.c (vfinfo): Assign new local str to fmt. Delete
348 putc call. If str and fmt are different, call fwrite on
349 the difference.
350
351 2012-03-30 Nick Clifton <nickc@redhat.com>
352
353 * po/vi.po: Updated Vietnamese translation.
354
355 2012-03-27 Roland McGrath <mcgrathr@google.com>
356
357 * configure.in: Set want64 on a 64-bit host regardless of
358 --enable-targets=all.
359 * configure: Regenerated.
360
361 2012-03-26 Tristan Gingold <gingold@adacore.com>
362
363 * lexsup.c (parse_args): Add a missing '\n'.
364
365 2012-03-25 Alan Modra <amodra@gmail.com>
366
367 * ldemul.c (before_allocation_default): Revert last change.
368 * ldlang.c (lang_add_section): Likewise.
369 (strip_excluded_output_sections): Don't strip output sections with
370 user input sections when emitrelocations, unless all are SEC_EXCLUDE.
371
372 2012-03-23 Alan Modra <amodra@gmail.com>
373
374 * ldemul.c (before_allocation_default): When emitrelocations,
375 don't strip sections..
376 * ldlang.c (lang_add_section): ..and don't set up map_head, map_tail.
377
378 2012-03-14 Kai Tietz <ktietz@redhat.com>
379 Pascal Obry <pascal@obry.net>
380
381 * pe-dll.c (found_sym): New static variable.
382 (undef_count): Likewise.
383 (key_value): New structure.
384 (undef_sort_cmp): Compare routine for qsort/bsearch.
385 (pe_find_cdecl_alias_match): Add new argument.
386 (pe_undef_alias_cdecl_match): Removed.
387 (pe_undef_count): New helper routine.
388 (pe_create_undef_table): Likewise.
389 (pe_process_import_defs): Use pe_create_undef_table and
390 new pe_undef_alias_cdecl_match function.
391
392 2012-03-14 Alan Modra <amodra@gmail.com>
393
394 PR ld/13839
395 * ldexp.c (fold_name): Ignore undefined symbols when assigning to
396 dot in mark phase.
397 (exp_fold_tree_1): Evaluate assignment to dot expressions even when
398 discarding result, for side effects. Fix typo in error message.
399
400 2012-03-08 Tristan Gingold <gingold@adacore.com>
401
402 * ldexp.c (exp_print_tree): Special case for SEGMENT_START.
403 (exp_print_token): Constify.
404
405 2012-03-08 Alan Modra <amodra@gmail.com>
406
407 PR ld/10340
408 * ldfile.c (is_sysrooted_pathname): Remove notsame param.
409 (ldfile_add_library_path): Don't set sysrooted flag.
410 (ldfile_open_file_search): Likewise, and don't copy them.
411 (try_open): Delete exten and code handling such. Add sysrooted
412 param and return whether path is in sysroot.
413 (ldfile_find_command_file): Delete extend param. Add sysrooted
414 param. Rename local var. Update try_open calls.
415 (ldfile_open_command_file_1): Pass sysrooted to lex_push_file.
416 * ldfile.h (search_dirs_type): Remove sysrooted field.
417 * ldlang.c (new_afile): Always set sysrooted from input_flags.
418 (load_symbols): Don't set input_flags.sysrooted.
419 * ldlang.h (struct lang_input_statement_flags): Revise sysrooted
420 comment.
421 * ldlex.h (lex_push_file): Update prototype.
422 * ldlex.l (sysrooted_stack): New array.
423 (EOF): Pop input_flags.sysrooted.
424 (lex_push_file): Add sysrooted param. Save and set
425 input_flags.sysrooted.
426
427 2012-03-06 Alan Modra <amodra@gmail.com>
428
429 * ldlang.h (struct lang_input_statement_flags): New, extract from..
430 (lang_input_statement_type): ..here. New field "flags".
431 (input_flags): Declare.
432 (missing_file): Delete.
433 * ldmain.h (whole_archive): Delete.
434 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
435 * ld.h (ld_config_type <dynamic_link>): Delete.
436 * ldmain.c (whole_archive): Delete.
437 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
438 * ldlang.c (missing_file, ldlang_sysrooted_script): Delete.
439 (input_flags): New variable. Replace all uses of config.dynamic_link,
440 missing_file, ldlang_sysrooted_script, whole_archive,
441 add_DT_NEEDED_for_regular and add_DT_NEEDED_for_dynamic with fields
442 from here.
443 * ldfile.c: Likewise.
444 * ldgram.y: Likewise.
445 * ldmain.c: Likewise.
446 * ldwrite.c: Likewise.
447 * lexsup.c: Likewise.
448 * plugin.c: Likewise.
449 * emultempl/aix.em: Likewise.
450 * emultempl/armelf.em: Likewise.
451 * emultempl/elf32.em: Likewise.
452 * emultempl/hppaelf.em: Likewise.
453 * emultempl/linux.em: Likewise.
454 * emultempl/pe.em: Likewise.
455 * emultempl/pep.em: Likewise.
456 * emultempl/ppc64elf.em: Likewise.
457 * emultempl/scoreelf.em: Likewise.
458 * emultempl/spuelf.em: Likewise.
459 * emultempl/sunos.em: Likewise.
460 * emultempl/vms.em: Likewise.
461 * ldlang.c (new_afile): Use memset to init zero fields.
462 (load_symbols): Simplify save and restore of flags around command
463 file processing.
464 * ldfile.c (is_sysrooted_pathname): Tidy.
465
466 2012-03-05 Hans-Peter Nilsson <hp@axis.com>
467
468 * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
469 (mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by
470 replacing trailing "-*" with "*".
471
472 2012-02-25 Walter Lee <walt@tilera.com>
473
474 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c.
475 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c.
476 (eelf32tilegx_be.c): Add rule to build this file.
477 (eelf64tilegx_be.c): Ditto.
478 * Makefile.in: Regenerate.
479 * configure.tgt (tilegx-*-*): Support big endian.
480 (tilegxbe-*-*): New.
481 * emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename.
482 (BIG_OUTPUT_FORMAT): Define.
483 (LITTLE_OUTPUT_FORMAT): Define.
484 * emulparams/elf32tilegx_be.sh: New.
485 * emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename.
486 (BIG_OUTPUT_FORMAT): Define.
487 (LITTLE_OUTPUT_FORMAT): Define.
488 * emulparams/elf64tilegx_be.sh: New.
489
490 2012-02-24 Kai Tietz <ktietz@redhat.com>
491
492 PR binutils/13710
493 * deffilep.y (keyword_as_name): Disable LIBRARY
494 keyword.
495
496 2012-02-22 Alan Modra <amodra@gmail.com>
497
498 PR ld/13683
499 * ldlang.c (lang_process): Rerun lang_do_assignments before
500 starting garbage collection.
501 * ldexp.c (fold_name): Generate a reloc for defined symbols
502 found without an associated output section during the mark phase.
503 (exp_fold_tree_1): Continue processing an expression, even if we
504 are unable to fold it, if we are in the first two evaluation
505 phases.
506 * ldexp.h (enum lang_phase_type): Add descriptions of the phases.
507
508 2012-02-19 Kai Tietz <ktietz@redhat.com>
509
510 * deffilep.y (cmp_import_elem): Sort first by module name.
511 * pe-dll.c (process_def_file_and_drectve): Free strings
512 from removed export-element.
513 (add_bfd_to_link): Optimize loop on import-elements and lower
514 allocated memory.
515 (pe_implied_import_dll): Pass NULL instead of 0 for pointer
516 argument.
517
518 2012-02-18 Hans-Peter Nilsson <hp@axis.com>
519
520 * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
521 temporary variable node used for NULL argument.
522
523 2012-02-18 Alan Modra <amodra@gmail.com>
524
525 PR ld/13343
526 * ld.h (parsing_defsym): Delete.
527 * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
528 (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
529 exp_get_abs_int): Add tree arg for %S in error messages. Don't
530 fudge lineno.
531 (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
532 type.filename from sub-tree.
533 (exp_trinop): Likewise, and use "cond" rather than "lhs".
534 * ldexp.h (node_type): Add filename field to struct.
535 * ldfile.c (ldfile_input_filename): Delete. Remove all refs.
536 * ldfile.h (ldfile_input_filename): Delete.
537 * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
538 %S in error messages.
539 * ldemul.c (syslib_default, hll_default): Likewise.
540 * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
541 lang_get_regions, lang_new_phdr): Likewise.
542 (lang_size_sections_1): Pass addr_tree for %S.
543 * ldlex.h (lex_redirect): Update prototype.
544 (ldlex_filename): Declare.
545 * ldlex.l (<EOF>): Don't set ldfile_input_filename.
546 (lex_redirect): Add fake_filename and count params. Push
547 fake_filename to file_name_stack and init lineno from count.
548 (ldlex_filename): New function.
549 (lex_warn_invalid): Use above.
550 * ldmain.c (main): Update lex_redirect call.
551 * ldmisc.c (vfinfo <%S>): Take file name and line number from
552 etree_type arg, or use current if arg is NULL.
553 * lexsup.c (parsing_defsym): Delete.
554 (parse_args <OPTION_DEFSYM>): Update lex_redirect call.
555
556 2012-02-13 Kai Tietz <ktietz@redhat.com>
557
558 * deffilep.y (find_export_in_list): Set is_indent for
559 first or last element, if identical.
560 (find_import_in_list): Likewise.
561
562 2012-02-11 Kai Tietz <ktietz@redhat.com>
563
564 * deffilep.y (%union): New type id_const.
565 (opt_name2): New rule.
566 (keyword_as_name): New rule.
567 (dot_name): Replaced by opt_name2 rule.
568 (opt_name): Adjust rule.
569 (opt_equal_name): Likewise.
570
571 2012-02-11 Pascal Obry <pascal@obry.net>
572
573 * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
574 table.
575 (process_def_file_and_drectve): Maintain sorting of exports table
576 after stripping leading @ signs.
577
578 2012-02-09 Alan Modra <amodra@gmail.com>
579
580 * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
581
582 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
583
584 PR ld/13616
585 * emulparams/elf32_x86_64.sh: Remove NOP.
586 * emulparams/elf_i386.sh: Likewise.
587 * emulparams/elf_i386_be.sh: Likewise.
588 * emulparams/elf_i386_ldso.sh: Likewise.
589 * emulparams/elf_i386_vxworks.sh: Likewise.
590 * emulparams/elf_k1om.sh: Likewise.
591 * emulparams/elf_l1om.sh: Likewise.
592 * emulparams/elf_x86_64.sh: Likewise.
593
594 * ldlang.c (zero_fill): Initialized to 0.
595
596 * ldwrite.c (build_link_order): Set data size to linker odrder
597 size when they are the same.
598
599 * scripttempl/elf.sc: Don't specify fill if NOP is undefined.
600
601 2012-01-17 Alan Modra <amodra@gmail.com>
602
603 * ldver.c (ldversion): Update copyright message year.
604
605 2012-01-15 Alan Modra <amodra@gmail.com>
606
607 PR ld/12758
608 * ldlang.c (lang_process): Don't reopen all files, just those
609 newly added by plugin.
610
611 2012-01-11 Alan Modra <amodra@gmail.com>
612
613 * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE,
614 PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
615 PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and
616 --{no-,}plt-align.
617 (plt_thread_safe, plt_stub_align): New vars.
618 (gld${EMULATION_NAME}_after_allocation): Pass them to
619 ppc64_elf_size_stubs. Align stub sections according to plt_stub_align.
620 * ld.texinfo: Document new command line options, and an old
621 undocumented option.
622
623 2012-01-09 Roland McGrath <mcgrathr@google.com>
624
625 * configure.in: Use AM_ZLIB.
626 * configure: Regenerated.
627
628 For older changes see ChangeLog-2011
629 \f
630 Local Variables:
631 mode: change-log
632 left-margin: 8
633 fill-column: 74
634 version-control: never
635 End:
This page took 0.173001 seconds and 4 git commands to generate.