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