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