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