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