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