* ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
[external/binutils.git] / ld / ChangeLog
1 2012-02-18  Hans-Peter Nilsson  <hp@axis.com>
2
3         * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
4         temporary variable node used for NULL argument.
5
6 2012-02-18  Alan Modra  <amodra@gmail.com>
7
8         PR ld/13343
9         * ld.h (parsing_defsym): Delete.
10         * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
11         (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
12         exp_get_abs_int): Add tree arg for %S in error messages.  Don't
13         fudge lineno.
14         (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
15         type.filename from sub-tree.
16         (exp_trinop): Likewise, and use "cond" rather than "lhs".
17         * ldexp.h (node_type): Add filename field to struct.
18         * ldfile.c (ldfile_input_filename): Delete.  Remove all refs.
19         * ldfile.h (ldfile_input_filename): Delete.
20         * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
21         %S in error messages.
22         * ldemul.c (syslib_default, hll_default): Likewise.
23         * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
24         lang_get_regions, lang_new_phdr): Likewise.
25         (lang_size_sections_1): Pass addr_tree for %S.
26         * ldlex.h (lex_redirect): Update prototype.
27         (ldlex_filename): Declare.
28         * ldlex.l (<EOF>): Don't set ldfile_input_filename.
29         (lex_redirect): Add fake_filename and count params.  Push
30         fake_filename to file_name_stack and init lineno from count.
31         (ldlex_filename): New function.
32         (lex_warn_invalid): Use above.
33         * ldmain.c (main): Update lex_redirect call.
34         * ldmisc.c (vfinfo <%S>): Take file name and line number from
35         etree_type arg, or use current if arg is NULL.
36         * lexsup.c (parsing_defsym): Delete.
37         (parse_args <OPTION_DEFSYM>): Update lex_redirect call.
38
39 2012-02-13  Kai Tietz  <ktietz@redhat.com>
40
41         * deffilep.y (find_export_in_list): Set is_indent for
42         first or last element, if identical.
43         (find_import_in_list): Likewise.
44
45 2012-02-11  Kai Tietz  <ktietz@redhat.com>
46
47         * deffilep.y (%union): New type id_const.
48         (opt_name2): New rule.
49         (keyword_as_name): New rule.
50         (dot_name): Replaced by opt_name2 rule.
51         (opt_name): Adjust rule.
52         (opt_equal_name): Likewise.
53
54 2012-02-11  Pascal Obry  <pascal@obry.net>
55
56         * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
57         table.
58         (process_def_file_and_drectve): Maintain sorting of exports table
59         after stripping leading @ signs.
60
61 2012-02-09  Alan Modra  <amodra@gmail.com>
62
63         * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
64
65 2012-01-31  H.J. Lu  <hongjiu.lu@intel.com>
66
67         PR ld/13616
68         * emulparams/elf32_x86_64.sh: Remove NOP.
69         * emulparams/elf_i386.sh: Likewise.
70         * emulparams/elf_i386_be.sh: Likewise.
71         * emulparams/elf_i386_ldso.sh: Likewise.
72         * emulparams/elf_i386_vxworks.sh: Likewise.
73         * emulparams/elf_k1om.sh: Likewise.
74         * emulparams/elf_l1om.sh: Likewise.
75         * emulparams/elf_x86_64.sh: Likewise.
76
77         * ldlang.c (zero_fill): Initialized to 0.
78
79         * ldwrite.c (build_link_order): Set data size to linker odrder
80         size when they are the same.
81
82         * scripttempl/elf.sc: Don't specify fill if NOP is undefined.
83
84 2012-01-17  Alan Modra  <amodra@gmail.com>
85
86         * ldver.c (ldversion): Update copyright message year.
87
88 2012-01-15  Alan Modra  <amodra@gmail.com>
89
90         PR ld/12758
91         * ldlang.c (lang_process): Don't reopen all files, just those
92         newly added by plugin.
93
94 2012-01-11  Alan Modra  <amodra@gmail.com>
95
96         * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE,
97         PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
98         PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and
99         --{no-,}plt-align.
100         (plt_thread_safe, plt_stub_align): New vars.
101         (gld${EMULATION_NAME}_after_allocation): Pass them to
102         ppc64_elf_size_stubs.  Align stub sections according to plt_stub_align.
103         * ld.texinfo: Document new command line options, and an old
104         undocumented option.
105
106 2012-01-09  Roland McGrath  <mcgrathr@google.com>
107
108         * configure.in: Use AM_ZLIB.
109         * configure: Regenerated.
110
111 For older changes see ChangeLog-2011
112 \f
113 Local Variables:
114 mode: change-log
115 left-margin: 8
116 fill-column: 74
117 version-control: never
118 End: