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