xref: /netbsd-src/external/gpl3/binutils.old/dist/ld/ChangeLog-2014 (revision 75fd0b742a7e4a64301bc6c44e9bc5240c58bb92)
1*75fd0b74Schristos2014-12-24  Alan Modra  <amodra@gmail.com>
2*75fd0b74Schristos
3*75fd0b74Schristos	* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Exclude
4*75fd0b74Schristos	shared libraries in loop looking for .eh_frame sections.
5*75fd0b74Schristos	Similarly for build-id loop.
6*75fd0b74Schristos
7*75fd0b74Schristos2014-12-23  Andrew Burgess  <andrew.burgess@embecosm.com>
8*75fd0b74Schristos
9*75fd0b74Schristos	* emultempl/avrelf.em: Add include of elf/avr.h.
10*75fd0b74Schristos	(avr_finish): New function.
11*75fd0b74Schristos	(LDEMUL_FINISH): Added.
12*75fd0b74Schristos
13*75fd0b74Schristos2014-12-23  Alan Modra  <amodra@gmail.com>
14*75fd0b74Schristos
15*75fd0b74Schristos	* ldexp.c (update_definedness): Return false if script symbol is
16*75fd0b74Schristos	redefining a strong symbol in an object.
17*75fd0b74Schristos	(exp_fold_tree_1 <etree_assign>): Set up for reporting a multiple
18*75fd0b74Schristos	definition error, but for now leave disabled.
19*75fd0b74Schristos
20*75fd0b74Schristos2014-12-23  Alan Modra  <amodra@gmail.com>
21*75fd0b74Schristos
22*75fd0b74Schristos	* ldexp.c (exp_fold_tree_1 <etree_provide>): Test linker_def.
23*75fd0b74Schristos
24*75fd0b74Schristos2014-12-23  Alan Modra  <amodra@gmail.com>
25*75fd0b74Schristos
26*75fd0b74Schristos	* ldexp.c (exp_fold_tree_1 <etree_provide>): Leave bfd_link_hash_common
27*75fd0b74Schristos	symbols alone.
28*75fd0b74Schristos
29*75fd0b74Schristos2014-12-23  Alan Modra  <amodra@gmail.com>
30*75fd0b74Schristos
31*75fd0b74Schristos	* ldexp.c (update_definedness): Correct logic setting by_object.
32*75fd0b74Schristos
33*75fd0b74Schristos2014-12-23  Alan Modra  <amodra@gmail.com>
34*75fd0b74Schristos
35*75fd0b74Schristos	* ldexp.c (struct definedness_hash_entry, definedness_table)
36*75fd0b74Schristos	(definedness_newfunc, symbol_defined, update_definedness): Move
37*75fd0b74Schristos	and rename from..
38*75fd0b74Schristos	* ldlang.h (struct lang_definedness_hash_entry): ..here,..
39*75fd0b74Schristos	* ldlang.c (lang_definedness_table, lang_definedness_newfunc)
40*75fd0b74Schristos	(lang_symbol_defined, lang_update_definedness): ..and here.
41*75fd0b74Schristos	* ldexp.c (ldexp_init, ldexp_finish): New functions, extracted from..
42*75fd0b74Schristos	* ldlang.c (lang_init, lang_finish): ..here.
43*75fd0b74Schristos	* ldexp.h (ldexp_init, ldexp_finish): Declare.
44*75fd0b74Schristos	* ldlang.h (lang_symbol_defined, lang_update_definedness): Delete.
45*75fd0b74Schristos	* ldmain.c (main): Call ldexp_init and ldexp_finish.
46*75fd0b74Schristos
47*75fd0b74Schristos2014-12-10  Alan Modra  <amodra@gmail.com>
48*75fd0b74Schristos
49*75fd0b74Schristos	* ldmisc.c: #include "coff-bfd.h"
50*75fd0b74Schristos
51*75fd0b74Schristos2014-12-06  Eric Botcazou  <ebotcazou@adacore.com>
52*75fd0b74Schristos
53*75fd0b74Schristos	* configure.tgt: Add Visium support.
54*75fd0b74Schristos	* Makefile.am (ALL_EMULATION_SOURCES): Add eelf32visium.c.
55*75fd0b74Schristos	(eelf32visium.c): New rule.
56*75fd0b74Schristos	* Makefile.in: Regenerate.
57*75fd0b74Schristos	* emulparams/elf32visium.sh: New file.
58*75fd0b74Schristos	* scripttempl/visium.sc: Likewise.
59*75fd0b74Schristos
60*75fd0b74Schristos2014-11-25  H.J. Lu  <hongjiu.lu@intel.com>
61*75fd0b74Schristos
62*75fd0b74Schristos	* emulparams/elf_i386.sh (TINY_READONLY_SECTION): New.
63*75fd0b74Schristos	* emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): Add .plt.got.
64*75fd0b74Schristos
65*75fd0b74Schristos2014-11-24  H.J. Lu  <hongjiu.lu@intel.com>
66*75fd0b74Schristos
67*75fd0b74Schristos	* configure: Regenerated.
68*75fd0b74Schristos
69*75fd0b74Schristos2014-11-24  Alan Modra  <amodra@gmail.com>
70*75fd0b74Schristos
71*75fd0b74Schristos	* ld.texinfo: Correct --plt-align documentation.
72*75fd0b74Schristos	* emultempl/ppc64elf.em (plt_stub_align): Delete.  Use and set
73*75fd0b74Schristos	params.plt_stub_align instead.
74*75fd0b74Schristos
75*75fd0b74Schristos2014-11-18  Igor Zamyatin  <igor.zamyatin@intel.com>
76*75fd0b74Schristos
77*75fd0b74Schristos	* emulparams/elf_x86_64.sh (BNDPLT): Set to yes for x86_64.
78*75fd0b74Schristos	* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
79*75fd0b74Schristos	"-z bndplt" if BNDPLT is yes.
80*75fd0b74Schristos	(gld${EMULATION_NAME}_list_options): Add "-z bndplt" entry.
81*75fd0b74Schristos	* ld.texinfo: Add description for bndplt.
82*75fd0b74Schristos
83*75fd0b74Schristos2014-10-08  Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
84*75fd0b74Schristos
85*75fd0b74Schristos	* avrtiny.sc: Apply avr.sc fixes.
86*75fd0b74Schristos
87*75fd0b74Schristos2014-11-04  Alan Modra  <amodra@gmail.com>
88*75fd0b74Schristos
89*75fd0b74Schristos	* emultempl/spu_icache.o_c: Regenerate.
90*75fd0b74Schristos	* emultempl/spu_ovl.o_c: Regenerate.
91*75fd0b74Schristos
92*75fd0b74Schristos2014-11-03  Andrew Burgess  <andrew.burgess@embecosm.com>
93*75fd0b74Schristos
94*75fd0b74Schristos	* testsuite/ld-avr/relax-02.d: Update to check size of symbols has
95*75fd0b74Schristos	changed.
96*75fd0b74Schristos	* testsuite/ld-avr/relax-03.d: Likewise.
97*75fd0b74Schristos
98*75fd0b74Schristos2014-11-03  Andrew Burgess  <andrew.burgess@embecosm.com>
99*75fd0b74Schristos
100*75fd0b74Schristos	* testsuite/ld-avr/relax-02.d: New file.
101*75fd0b74Schristos	* testsuite/ld-avr/relax-02.s: New file.
102*75fd0b74Schristos	* testsuite/ld-avr/relax-03.d: New file.
103*75fd0b74Schristos	* testsuite/ld-avr/relax-03.s: New file.
104*75fd0b74Schristos
105*75fd0b74Schristos2014-10-29  Nick Clifton  <nickc@redhat.com>
106*75fd0b74Schristos
107*75fd0b74Schristos	* po/bg.po: Updated Bulgarian translation.
108*75fd0b74Schristos
109*75fd0b74Schristos2014-10-24  Tejas Belagod  <tejas.belagod@arm.com>
110*75fd0b74Schristos
111*75fd0b74Schristos	* emultempl/aarch64elf.em: Add command-line option for erratum 835769.
112*75fd0b74Schristos
113*75fd0b74Schristos2014-10-17  Hans-Peter Nilsson  <hp@axis.com>
114*75fd0b74Schristos
115*75fd0b74Schristos	Implement --print-sysroot in ld.
116*75fd0b74Schristos	* ldlex.h (enum option_values): Add entry OPTION_PRINT_SYSROOT.
117*75fd0b74Schristos	* lexsup.c (ld_options): Add entry for --print-sysroot.
118*75fd0b74Schristos	(parse_args) <OPTION_PRINT_SYSROOT>: Print sysroot and exit early.
119*75fd0b74Schristos
120*75fd0b74Schristos2014-10-16  Alan Modra  <amodra@gmail.com>
121*75fd0b74Schristos
122*75fd0b74Schristos	PR 17488
123*75fd0b74Schristos	* emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Don't attempt
124*75fd0b74Schristos	to access ELF header e_flags when not ppc64 ELF output.
125*75fd0b74Schristos
126*75fd0b74Schristos2014-10-15  Tristan Gingold  <gingold@adacore.com>
127*75fd0b74Schristos
128*75fd0b74Schristos	* configure: Regenerate.
129*75fd0b74Schristos
130*75fd0b74Schristos2014-10-15  Hans-Peter Nilsson  <hp@axis.com>
131*75fd0b74Schristos
132*75fd0b74Schristos	* ldlex.l (INPUTLIST): New start condition.
133*75fd0b74Schristos	(comment pattern, ",", "(", ")", "AS_NEEDED")
134*75fd0b74Schristos	({FILENAMECHAR1}{FILENAMECHAR}*, "-l"{FILENAMECHAR}+)
135*75fd0b74Schristos	(quoted string pattern, whitespace pattern): Add INPUTLIST to
136*75fd0b74Schristos	valid start conditions.
137*75fd0b74Schristos	(<INPUTLIST>"="{FILENAMECHAR1}{FILENAMECHAR}*): New NAME rule.
138*75fd0b74Schristos	(ldlex_inputlist): New start-condition-setter function.
139*75fd0b74Schristos	* ldgram.y (input_list1): Rename from input_list.  All recursive
140*75fd0b74Schristos	use changed.
141*75fd0b74Schristos	(input_list): New wrapper rule for input_list1, setting
142*75fd0b74Schristos	INPUTLIST lexer state for the duration of parsing input_list1.
143*75fd0b74Schristos	* ldlang.c (lang_add_input_file): If the first character in the
144*75fd0b74Schristos	filename is '=', prepend the sysroot and force the context of that
145*75fd0b74Schristos	input file to non-sysroot.
146*75fd0b74Schristos	* ld.texinfo (Options): When mentioning "=" and sysroot, mention
147*75fd0b74Schristos	that --sysroot controls it, not only through the configuration.
148*75fd0b74Schristos	(input files in linker scripts): When mentioning
149*75fd0b74Schristos	behavior of first character "/" on scripts within sysroot, also
150*75fd0b74Schristos	mention that effect can be forced by prefixing with "=" and
151*75fd0b74Schristos	refer to SEARCH_DIR.
152*75fd0b74Schristos
153*75fd0b74Schristos2014-10-14  Tristan Gingold  <gingold@adacore.com>
154*75fd0b74Schristos
155*75fd0b74Schristos	* NEWS: Add marker for 2.25.
156*75fd0b74Schristos
157*75fd0b74Schristos2014-10-13  Alan Modra  <amodra@gmail.com>
158*75fd0b74Schristos
159*75fd0b74Schristos	* ldlang.c (lang_add_section): Set up map_head.s and map_tail.s when
160*75fd0b74Schristos	relocatable.
161*75fd0b74Schristos
162*75fd0b74Schristos2014-09-16  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
163*75fd0b74Schristos
164*75fd0b74Schristos	* emultempl/nds32elf.em (nds32_elf_after_open): Do not keep
165*75fd0b74Schristos	ex9 234th entry.
166*75fd0b74Schristos	(nds32_elf_after_allocation): Move all optimizations into
167*75fd0b74Schristos	nds32_elf_relax_section.
168*75fd0b74Schristos
169*75fd0b74Schristos2014-09-15  Andrew Bennett  <andrew.bennett@imgtec.com>
170*75fd0b74Schristos	    Matthew Fortune  <matthew.fortune@imgtec.com>
171*75fd0b74Schristos
172*75fd0b74Schristos	* ldmain.c (get_emulation): Add support for -mips32r6 and -mips64r6.
173*75fd0b74Schristos
174*75fd0b74Schristos2014-09-12  Andrew Bennett  <andrew.bennett@imgtec.com>
175*75fd0b74Schristos
176*75fd0b74Schristos	* configure.tgt: Add mips*-img-elf* target triple.
177*75fd0b74Schristos
178*75fd0b74Schristos2014-09-01  Jon TURNEY  <jon.turney@dronecode.org.uk>
179*75fd0b74Schristos
180*75fd0b74Schristos	* emultempl/pe.em (write_build_id, setup_build_id): Change pe/coff
181*75fd0b74Schristos	build-id section name from '.build-id' to '.buildid'.
182*75fd0b74Schristos	* emultempl/pep.em (write_build_id, setup_build_id): Ditto.
183*75fd0b74Schristos
184*75fd0b74Schristos2014-08-22  Andreas Tobler  <andreast@fgznet.ch>
185*75fd0b74Schristos
186*75fd0b74Schristos	* emulparams/armelf_fbsd.sh (TEXT_START_ADDR): Increase alignment to
187*75fd0b74Schristos	64kB boundary like in armelf_linux.sh.
188*75fd0b74Schristos
189*75fd0b74Schristos2014-08-22  Alan Modra  <amodra@gmail.com>
190*75fd0b74Schristos
191*75fd0b74Schristos	* emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
192*75fd0b74Schristos	bfd_elf_discard_info after generating glink .eh_frame.  Delete
193*75fd0b74Schristos	redundant test on ppc64_elf_setup_section_lists status.
194*75fd0b74Schristos
195*75fd0b74Schristos2014-08-20  Maciej W. Rozycki  <macro@codesourcery.com>
196*75fd0b74Schristos
197*75fd0b74Schristos	* emultempl/armelf.em (OPTION_STUBGROUP_SIZE): Fix formatting.
198*75fd0b74Schristos	(OPTION_NO_MERGE_EXIDX_ENTRIES, OPTION_LONG_PLT): Likewise.
199*75fd0b74Schristos
200*75fd0b74Schristos2014-08-20  Will Newton  <will.newton@linaro.org>
201*75fd0b74Schristos
202*75fd0b74Schristos	* configure.tgt: Default armeb-*-eabi* to big endian.
203*75fd0b74Schristos
204*75fd0b74Schristos2014-08-20  Daniel Micay  <danielmicay@gmail.com>
205*75fd0b74Schristos
206*75fd0b74Schristos	* emultempl/pep.em: Add --high-entropy-va switch.
207*75fd0b74Schristos	* ld.texinfo: Document the --high-entropy-va switch.
208*75fd0b74Schristos
209*75fd0b74Schristos2014-08-20  Nick Clifton  <nickc@redhat.com>
210*75fd0b74Schristos
211*75fd0b74Schristos	* scripttempl/DWARF.sc: Add copyright notice.
212*75fd0b74Schristos	* scripttempl/aix.sc: Likewise.
213*75fd0b74Schristos	* scripttempl/alpha.sc: Likewise.
214*75fd0b74Schristos	* scripttempl/alphavms.sc: Likewise.
215*75fd0b74Schristos	* scripttempl/aout.sc: Likewise.
216*75fd0b74Schristos	* scripttempl/armaout.sc: Likewise.
217*75fd0b74Schristos	* scripttempl/armbpabi.sc: Likewise.
218*75fd0b74Schristos	* scripttempl/armcoff.sc: Likewise.
219*75fd0b74Schristos	* scripttempl/avr.sc: Likewise.
220*75fd0b74Schristos	* scripttempl/avrtiny.sc: Likewise.
221*75fd0b74Schristos	* scripttempl/crisaout.sc: Likewise.
222*75fd0b74Schristos	* scripttempl/delta68.sc: Likewise.
223*75fd0b74Schristos	* scripttempl/dlx.sc: Likewise.
224*75fd0b74Schristos	* scripttempl/elf.sc: Likewise.
225*75fd0b74Schristos	* scripttempl/elf32cr16.sc: Likewise.
226*75fd0b74Schristos	* scripttempl/elf32cr16c.sc: Likewise.
227*75fd0b74Schristos	* scripttempl/elf32crx.sc: Likewise.
228*75fd0b74Schristos	* scripttempl/elf32msp430.sc: Likewise.
229*75fd0b74Schristos	* scripttempl/elf32msp430_3.sc: Likewise.
230*75fd0b74Schristos	* scripttempl/elf32sh-symbian.sc: Likewise.
231*75fd0b74Schristos	* scripttempl/elf32xc16x.sc: Likewise.
232*75fd0b74Schristos	* scripttempl/elf32xc16xl.sc: Likewise.
233*75fd0b74Schristos	* scripttempl/elf32xc16xs.sc: Likewise.
234*75fd0b74Schristos	* scripttempl/elf64hppa.sc: Likewise.
235*75fd0b74Schristos	* scripttempl/elf_chaos.sc: Likewise.
236*75fd0b74Schristos	* scripttempl/elfd10v.sc: Likewise.
237*75fd0b74Schristos	* scripttempl/elfd30v.sc: Likewise.
238*75fd0b74Schristos	* scripttempl/elfi370.sc: Likewise.
239*75fd0b74Schristos	* scripttempl/elfm68hc11.sc: Likewise.
240*75fd0b74Schristos	* scripttempl/elfm68hc12.sc: Likewise.
241*75fd0b74Schristos	* scripttempl/elfmicroblaze.sc: Likewise.
242*75fd0b74Schristos	* scripttempl/elfxgate.sc: Likewise.
243*75fd0b74Schristos	* scripttempl/elfxtensa.sc: Likewise.
244*75fd0b74Schristos	* scripttempl/epiphany_4x4.sc: Likewise.
245*75fd0b74Schristos	* scripttempl/epocpe.sc: Likewise.
246*75fd0b74Schristos	* scripttempl/h8300.sc: Likewise.
247*75fd0b74Schristos	* scripttempl/h8300h.sc: Likewise.
248*75fd0b74Schristos	* scripttempl/h8300hn.sc: Likewise.
249*75fd0b74Schristos	* scripttempl/h8300s.sc: Likewise.
250*75fd0b74Schristos	* scripttempl/h8300sn.sc: Likewise.
251*75fd0b74Schristos	* scripttempl/h8300sx.sc: Likewise.
252*75fd0b74Schristos	* scripttempl/h8300sxn.sc: Likewise.
253*75fd0b74Schristos	* scripttempl/h8500.sc: Likewise.
254*75fd0b74Schristos	* scripttempl/h8500b.sc: Likewise.
255*75fd0b74Schristos	* scripttempl/h8500c.sc: Likewise.
256*75fd0b74Schristos	* scripttempl/h8500m.sc: Likewise.
257*75fd0b74Schristos	* scripttempl/h8500s.sc: Likewise.
258*75fd0b74Schristos	* scripttempl/hppaelf.sc: Likewise.
259*75fd0b74Schristos	* scripttempl/i386beos.sc: Likewise.
260*75fd0b74Schristos	* scripttempl/i386coff.sc: Likewise.
261*75fd0b74Schristos	* scripttempl/i386go32.sc: Likewise.
262*75fd0b74Schristos	* scripttempl/i386msdos.sc: Likewise.
263*75fd0b74Schristos	* scripttempl/i860coff.sc: Likewise.
264*75fd0b74Schristos	* scripttempl/i960.sc: Likewise.
265*75fd0b74Schristos	* scripttempl/ia64vms.sc: Likewise.
266*75fd0b74Schristos	* scripttempl/ip2k.sc: Likewise.
267*75fd0b74Schristos	* scripttempl/iq2000.sc: Likewise.
268*75fd0b74Schristos	* scripttempl/m68kaux.sc: Likewise.
269*75fd0b74Schristos	* scripttempl/m68kcoff.sc: Likewise.
270*75fd0b74Schristos	* scripttempl/m88kbcs.sc: Likewise.
271*75fd0b74Schristos	* scripttempl/mcorepe.sc: Likewise.
272*75fd0b74Schristos	* scripttempl/mep.sc: Likewise.
273*75fd0b74Schristos	* scripttempl/mips.sc: Likewise.
274*75fd0b74Schristos	* scripttempl/mipsbsd.sc: Likewise.
275*75fd0b74Schristos	* scripttempl/mmo.sc: Likewise.
276*75fd0b74Schristos	* scripttempl/moxie.sc: Likewise.
277*75fd0b74Schristos	* scripttempl/nds32elf.sc: Likewise.
278*75fd0b74Schristos	* scripttempl/nw.sc: Likewise.
279*75fd0b74Schristos	* scripttempl/pe.sc: Likewise.
280*75fd0b74Schristos	* scripttempl/pep.sc: Likewise.
281*75fd0b74Schristos	* scripttempl/pj.sc: Likewise.
282*75fd0b74Schristos	* scripttempl/ppcpe.sc: Likewise.
283*75fd0b74Schristos	* scripttempl/psos.sc: Likewise.
284*75fd0b74Schristos	* scripttempl/riscix.sc: Likewise.
285*75fd0b74Schristos	* scripttempl/sh.sc: Likewise.
286*75fd0b74Schristos	* scripttempl/sparccoff.sc: Likewise.
287*75fd0b74Schristos	* scripttempl/st2000.sc: Likewise.
288*75fd0b74Schristos	* scripttempl/tic30aout.sc: Likewise.
289*75fd0b74Schristos	* scripttempl/tic30coff.sc: Likewise.
290*75fd0b74Schristos	* scripttempl/tic4xcoff.sc: Likewise.
291*75fd0b74Schristos	* scripttempl/tic54xcoff.sc: Likewise.
292*75fd0b74Schristos	* scripttempl/tic80coff.sc: Likewise.
293*75fd0b74Schristos	* scripttempl/v850.sc: Likewise.
294*75fd0b74Schristos	* scripttempl/v850_rh850.sc: Likewise.
295*75fd0b74Schristos	* scripttempl/vanilla.sc: Likewise.
296*75fd0b74Schristos	* scripttempl/w65.sc: Likewise.
297*75fd0b74Schristos	* scripttempl/xstormy16.sc: Likewise.
298*75fd0b74Schristos	* scripttempl/z80.sc: Likewise.
299*75fd0b74Schristos	* scripttempl/z8000.sc: Likewise.
300*75fd0b74Schristos
301*75fd0b74Schristos2014-08-19  Alan Modra  <amodra@gmail.com>
302*75fd0b74Schristos
303*75fd0b74Schristos	* configure: Regenerate.
304*75fd0b74Schristos
305*75fd0b74Schristos2014-08-18  Alan Modra  <amodra@gmail.com>
306*75fd0b74Schristos
307*75fd0b74Schristos	* ld.texinfo (--as-needed): Clarify that references from libraries
308*75fd0b74Schristos	must be from needed libraries.
309*75fd0b74Schristos
310*75fd0b74Schristos2014-08-18  Alan Modra  <amodra@gmail.com>
311*75fd0b74Schristos
312*75fd0b74Schristos	* emultempl/aarch64elf.em (gld${EMULATION_NAME}_after_allocation):
313*75fd0b74Schristos	Handle error status from bfd_elf_discard_info.
314*75fd0b74Schristos	* emultempl/armelf.em: Likewise.
315*75fd0b74Schristos	* emultempl/elf32.em: Likewise.
316*75fd0b74Schristos	* emultempl/hppaelf.em: Likewise.
317*75fd0b74Schristos	* emultempl/metagelf.em: Likewise.
318*75fd0b74Schristos	* emultempl/nios2elf.em: Likewise.
319*75fd0b74Schristos	* emultempl/ppc64elf.em: Likewise.
320*75fd0b74Schristos	* emultempl/tic6xdsbt.em: Likewise.
321*75fd0b74Schristos	* emultempl/vms.em: Likewise.
322*75fd0b74Schristos
323*75fd0b74Schristos2014-08-14  Alan Modra  <amodra@gmail.com>
324*75fd0b74Schristos
325*75fd0b74Schristos	PR 16563
326*75fd0b74Schristos	* ldlang.c (map_head_is_link_order): Rename from
327*75fd0b74Schristos	stripped_excluded_sections.
328*75fd0b74Schristos	(lang_clear_os_map): New function, extracted from..
329*75fd0b74Schristos	(strip_excluded_output_sections): ..here.
330*75fd0b74Schristos	* ldlang.h (lang_clear_os_map): Declare.
331*75fd0b74Schristos	* ldwrite.c (ldwrite): Call lang_clear_os_map.
332*75fd0b74Schristos	* emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
333*75fd0b74Schristos	Likewise.
334*75fd0b74Schristos
335*75fd0b74Schristos2014-08-14  Alan Modra  <amodra@gmail.com>
336*75fd0b74Schristos
337*75fd0b74Schristos	* configure.ac: Move AC_PROG_CC and other macros earlier.  Delete
338*75fd0b74Schristos	plugin checks now done in config/plugins.m4.
339*75fd0b74Schristos	* config.in: Regenerate.
340*75fd0b74Schristos	* configure: Regenerate.
341*75fd0b74Schristos
342*75fd0b74Schristos2014-08-14  Alan Modra  <amodra@gmail.com>
343*75fd0b74Schristos
344*75fd0b74Schristos	* plugin.c (is_ir_dummy_bfd): Test BFD_PLUGIN flag rather than
345*75fd0b74Schristos	flags.claimed.
346*75fd0b74Schristos
347*75fd0b74Schristos2014-08-13  Yaakov Selkowitz  <yselkowi@redhat.com>
348*75fd0b74Schristos
349*75fd0b74Schristos	* pe-dll.c (autofilter_entry_type autofilter_symbollist_i386): Add
350*75fd0b74Schristos	__dso_handle.
351*75fd0b74Schristos
352*75fd0b74Schristos2014-08-13  Alan Modra  <amodra@gmail.com>
353*75fd0b74Schristos
354*75fd0b74Schristos	* ldlang.c (open_input_bfds): Don't use bfd_elf_get_dyn_lib_class.
355*75fd0b74Schristos
356*75fd0b74Schristos2014-08-12  Alan Modra  <amodra@gmail.com>
357*75fd0b74Schristos
358*75fd0b74Schristos	* ldlang.h (struct lang_input_statement_flags): Don't make "reload"
359*75fd0b74Schristos	field conditional on ENABLE_PLUGINS.
360*75fd0b74Schristos	* ldlang.c (open_input_bfds): Expand plugin_should_reload.
361*75fd0b74Schristos	* plugin.h (plugin_should_reload): Delete.
362*75fd0b74Schristos	* plugin.c (plugin_should_reload): Delete.
363*75fd0b74Schristos
364*75fd0b74Schristos2014-08-12  Alan Modra  <amodra@gmail.com>
365*75fd0b74Schristos
366*75fd0b74Schristos	* ldmain.c (notice): Update args.
367*75fd0b74Schristos	* plugin.c (plugin_notice): Likewise.  Follow warning sym link.
368*75fd0b74Schristos	Handle new indirect symbol.
369*75fd0b74Schristos
370*75fd0b74Schristos2014-08-12  Alan Modra  <amodra@gmail.com>
371*75fd0b74Schristos
372*75fd0b74Schristos	* plugin.c (plugin_load_plugins): Set link_info.lto_plugin_active.
373*75fd0b74Schristos
374*75fd0b74Schristos2014-08-08  Ulrich Drepper  <drepper@gmail.com>
375*75fd0b74Schristos
376*75fd0b74Schristos	* ldlang.h (struct lang_input_statement_flags): Add pushed
377*75fd0b74Schristos	member.
378*75fd0b74Schristos	* ldlex.h (enum option_values): Add OPTION_PUSH_STATE and
379*75fd0b74Schristos	OPTION_POP_STATE.
380*75fd0b74Schristos	* lexsup.c (ld_options): Add entries for --push-state and
381*75fd0b74Schristos	--pop-state.
382*75fd0b74Schristos	(parse_args): Handle OPTION_PUSH_STATE and OPTION_POP_STATE.
383*75fd0b74Schristos	* ld.texinfo: Document --push-state and --pop-state.
384*75fd0b74Schristos
385*75fd0b74Schristos2014-08-06  H.J. Lu  <hongjiu.lu@intel.com>
386*75fd0b74Schristos
387*75fd0b74Schristos	PR14918
388*75fd0b74Schristos	* plugin.c (plugin_opt_plugin_arg): Drop --pass-through.
389*75fd0b74Schristos
390*75fd0b74Schristos2014-08-05  Alan Modra  <amodra@gmail.com>
391*75fd0b74Schristos
392*75fd0b74Schristos	* Makefile.in: Regenerate.
393*75fd0b74Schristos
394*75fd0b74Schristos2014-07-29  Matthew Fortune  <matthew.fortune@imgtec.com>
395*75fd0b74Schristos
396*75fd0b74Schristos	* emulparams/elf32bmip.sh: Add .MIPS.abiflags.
397*75fd0b74Schristos	* emulparams/elf32bmipn32-defs.sh: Likewise.
398*75fd0b74Schristos	* emulparams/elf64bmip-defs.sh: Likewise.
399*75fd0b74Schristos
400*75fd0b74Schristos2014-07-27  Anthony Green  <green@moxielogic.com>
401*75fd0b74Schristos
402*75fd0b74Schristos	* Makefile.am (ALL_EMULATION_SOURCES): Add moxiebox support.
403*75fd0b74Schristos	(emoxiebox.c): Build.
404*75fd0b74Schristos	* configure.tgt (targ_extra_ofiles): Add moxie-*-moxiebox*.
405*75fd0b74Schristos	* emulparams/moxiebox.sh (TEXT_START_ADDR): New file.
406*75fd0b74Schristos	* Makefile.in: Rebuilt.
407*75fd0b74Schristos
408*75fd0b74Schristos2014-07-17  Stefan Kristiansson  <stefan.kristiansson@saunalahti.fi>
409*75fd0b74Schristos
410*75fd0b74Schristos	* emulparams/elf32or1k_linux.sh (TEXT_START_ADDR): Increase from
411*75fd0b74Schristos	0x0 to first page boundary at 0x2000.
412*75fd0b74Schristos
413*75fd0b74Schristos2014-07-10  Max Filippov  <jcmvbkbc@gmail.com>
414*75fd0b74Schristos
415*75fd0b74Schristos	* emultempl/xtensaelf.em (is_inconsistent_linkonce_section):
416*75fd0b74Schristos	correctly handle missing dot in section name after
417*75fd0b74Schristos	".gnu.linkonce.prop.".
418*75fd0b74Schristos
419*75fd0b74Schristos2014-07-08  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
420*75fd0b74Schristos
421*75fd0b74Schristos	* scripttempl/avr.sc: Remove KEEP for .data and
422*75fd0b74Schristos	force .bss VMA to end of .data VMA.
423*75fd0b74Schristos
424*75fd0b74Schristos2014-07-08  Will Newton  <will.newton@linaro.org>
425*75fd0b74Schristos
426*75fd0b74Schristos	* emulparams/armelf_linux.sh (TEXT_START_ADDR): Increase
427*75fd0b74Schristos	alignment to 64kB boundary.
428*75fd0b74Schristos
429*75fd0b74Schristos2014-07-04  Alan Modra  <amodra@gmail.com>
430*75fd0b74Schristos
431*75fd0b74Schristos	* configure.ac: Update "configure.in" comments.
432*75fd0b74Schristos	* configure: Regenerate.
433*75fd0b74Schristos
434*75fd0b74Schristos2014-07-04  Alan Modra  <amodra@gmail.com>
435*75fd0b74Schristos
436*75fd0b74Schristos	* configure.ac: Rename from configure.in.
437*75fd0b74Schristos	* Makefile.in: Regenerate.
438*75fd0b74Schristos	* config.in: Regenerate.
439*75fd0b74Schristos
440*75fd0b74Schristos2014-07-04  Alan Modra  <amodra@gmail.com>
441*75fd0b74Schristos
442*75fd0b74Schristos	* configure.in: Include bfd/version.m4.
443*75fd0b74Schristos	(AC_INIT, AM_INIT_AUTOMAKE): Use modern form.
444*75fd0b74Schristos	(BFD_VERSION): Delete.
445*75fd0b74Schristos	* Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove bfd/configure.in.
446*75fd0b74Schristos	* configure: Regenerate.
447*75fd0b74Schristos	* Makefile.in: Regenerate.
448*75fd0b74Schristos
449*75fd0b74Schristos2014-07-03  Alan Modra  <amodra@gmail.com>
450*75fd0b74Schristos
451*75fd0b74Schristos	PR 17068
452*75fd0b74Schristos	* ldlang.c (load_symbols): Always check flags.reload.
453*75fd0b74Schristos	(open_input_bfds): Always reload --as-needed shared libraries,
454*75fd0b74Schristos	not just when rescanning.
455*75fd0b74Schristos	* ldlang.h (struct lang_input_statement_flags): Update reload comment.
456*75fd0b74Schristos	* plugin.c (plugin_should_reload): Assume shared library arg.
457*75fd0b74Schristos	* plugin.h (plugin_should_reload): Update comment.
458*75fd0b74Schristos
459*75fd0b74Schristos2014-07-01  Alan Modra  <amodra@gmail.com>
460*75fd0b74Schristos
461*75fd0b74Schristos	* emultempl/ppc64elf.em (stub_added): Delete.
462*75fd0b74Schristos	(gld${EMULATION_NAME}_finish): Call ppc64_elf_build_stubs even when
463*75fd0b74Schristos	none of the usual stubs have been added.  Only change entry_section
464*75fd0b74Schristos	for ELFv1.
465*75fd0b74Schristos
466*75fd0b74Schristos2014-07-01  Alan Modra  <amodra@gmail.com>
467*75fd0b74Schristos
468*75fd0b74Schristos	* sysdep.h: Don't include limits.h and sys/param.h.  Don't
469*75fd0b74Schristos	include unistd.h twice.
470*75fd0b74Schristos	(LD_PATHMAX): Don't define.
471*75fd0b74Schristos	* ldlang.c (lang_common): Don't use UINT_MAX.
472*75fd0b74Schristos
473*75fd0b74Schristos2014-07-01  Barney Stratford  <barney_stratford@fastmail.fm>
474*75fd0b74Schristos            Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
475*75fd0b74Schristos            Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
476*75fd0b74Schristos            Soundararajan  <Sounderarajan.D@atmel.com>
477*75fd0b74Schristos
478*75fd0b74Schristos	* Makefile.am (ALL_EMULATION_SOURCES): Add avrtiny emulation source.
479*75fd0b74Schristos	(eavrtiny.c): Add rules for avrtiny emulation source.
480*75fd0b74Schristos	* Makefile.in: Regenerate.
481*75fd0b74Schristos	* configure.tgt: Add avrtiny to avr target emulations.
482*75fd0b74Schristos	* scripttempl/avrtiny.sc: New file.  Linker script template for
483*75fd0b74Schristos	avrtiny arch.
484*75fd0b74Schristos	* emulparams/avrtiny.sh: New file.  Emulation parameters for
485*75fd0b74Schristos	avrtiny arch.
486*75fd0b74Schristos
487*75fd0b74Schristos2014-06-30  Ulrich Drepper  <drepper@gmail.com>
488*75fd0b74Schristos
489*75fd0b74Schristos	* lexsup.c (parse_args): Check whether provided SONAME is empty
490*75fd0b74Schristos	string.  If yes, warn and ignore it.  Don't overwrite valid SONAME
491*75fd0b74Schristos	with empty string.
492*75fd0b74Schristos
493*75fd0b74Schristos2014-06-26  Linda Zhang  <lindasc@qq.com>
494*75fd0b74Schristos
495*75fd0b74Schristos	* emultempl/pe.em: Initialise insert_timestamp to true.
496*75fd0b74Schristos	Add a --no-insert-timestamp command line option.
497*75fd0b74Schristos	* emultempl/pep.em: Likewise.
498*75fd0b74Schristos	* ld.texinfo: Document that --insert-timestamp is enabled by
499*75fd0b74Schristos	default and that it now has an inverse command line option.
500*75fd0b74Schristos	* NEWS: Mention the new behaviour.
501*75fd0b74Schristos
502*75fd0b74Schristos2014-06-25  Nick Clifton  <nickc@redhat.com>
503*75fd0b74Schristos
504*75fd0b74Schristos	* Makefile.am (ALL_EMULATION_SOURCES): Move ei386pep.c from
505*75fd0b74Schristos	here...
506*75fd0b74Schristos	(ALL_64_EMULATION_SOURCES): ... to here.
507*75fd0b74Schristos	(ALL_EMUL_EXTRA_OFILES): Move pep-dll.o from here...
508*75fd0b74Schristos	(ALL_64_EMUL_EXTRA_OFILES): New.  ... to here.
509*75fd0b74Schristos	* configure.in (EMUL_EXTRA_OFILES): Include
510*75fd0b74Schristos	ALL_64_EMUL_EXTRA_OFILES when making a 64-bit enabled build.
511*75fd0b74Schristos	* Makefile.in: Regenerate.
512*75fd0b74Schristos	* configure: Regenerate.
513*75fd0b74Schristos
514*75fd0b74Schristos2014-06-18  Andreas Tobler  <andreast@fgznet.ch>
515*75fd0b74Schristos
516*75fd0b74Schristos	* configure.tgt (arm*-*-freebsd*): Update targ_extra_emuls.
517*75fd0b74Schristos	(arm*b-*-freebsd*): Add target.
518*75fd0b74Schristos	* emulparams/armelfb_fbsd.sh: Added.
519*75fd0b74Schristos	* emulparams/armelf_fbsd.sh: Updated.
520*75fd0b74Schristos	* Makefile.am (ALL_EMULATION_SOURCES): Add earmelfb_fbsd.c.
521*75fd0b74Schristos	* Makefile.in: Regenerate.
522*75fd0b74Schristos
523*75fd0b74Schristos2014-06-16  Alan Modra  <amodra@gmail.com>
524*75fd0b74Schristos
525*75fd0b74Schristos	* scripttempl/elf.sc: Edit out __rela_iplt symbol assignments from
526*75fd0b74Schristos	.rel sections, and __rel_iplt from .rela sections.
527*75fd0b74Schristos	* scripttempl/nds32elf.sc: Likewise.
528*75fd0b74Schristos	* Makefile.am (ends32*.c) Depend on nds32elf.sc.
529*75fd0b74Schristos	* Makefile.in: Regenerate.
530*75fd0b74Schristos
531*75fd0b74Schristos2014-06-13  Alan Modra  <amodra@gmail.com>
532*75fd0b74Schristos
533*75fd0b74Schristos	PR 17047
534*75fd0b74Schristos	* ldlang.c (output_bfd_hash_table_free_fn): Delete.
535*75fd0b74Schristos	(open_output): Don't set it..
536*75fd0b74Schristos	* ldmain.c (ld_cleanup): ..or call it.
537*75fd0b74Schristos
538*75fd0b74Schristos2014-06-13  Alan Modra  <amodra@gmail.com>
539*75fd0b74Schristos
540*75fd0b74Schristos	* emultempl/cr16elf.em, * emultempl/elf32.em, * emultempl/genelf.em,
541*75fd0b74Schristos	* emultempl/m68kcoff.em, * emultempl/m68kelf.em,
542*75fd0b74Schristos	* emultempl/nds32elf.em, * emultempl/pe.em, * emultempl/pep.em,
543*75fd0b74Schristos	* ldlang.c, * ldmain.c, * pe-dll.c: Update for bfd.link_next change.
544*75fd0b74Schristos
545*75fd0b74Schristos2014-06-13  Alan Modra  <amodra@gmail.com>
546*75fd0b74Schristos
547*75fd0b74Schristos	* Makefile.am (ALL_EMULATION_SOURCES): Add enios2elf.c, enios2linux.c.
548*75fd0b74Schristos	* Makefile.in: Regenerate.
549*75fd0b74Schristos
550*75fd0b74Schristos2014-06-07  Alan Modra  <amodra@gmail.com>
551*75fd0b74Schristos
552*75fd0b74Schristos	* ldexp.c (exp_fold_tree_1 <etree_provide>): Make PROVIDEd
553*75fd0b74Schristos	linker script symbol value override a built-in linker symbol.
554*75fd0b74Schristos
555*75fd0b74Schristos2014-06-05  Joel Brobecker  <brobecker@adacore.com>
556*75fd0b74Schristos
557*75fd0b74Schristos	* Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
558*75fd0b74Schristos	bfd's development.sh.
559*75fd0b74Schristos	* Makefile.in, configure: Regenerate.
560*75fd0b74Schristos
561*75fd0b74Schristos2014-06-02  Alan Modra  <amodra@gmail.com>
562*75fd0b74Schristos
563*75fd0b74Schristos	* emulparams/elf32bfin.sh: Rename from bfin.sh.
564*75fd0b74Schristos	* emulparams/elf32bfinfd.sh: Update to suit.
565*75fd0b74Schristos	* emulparams/msp430.sh: Rename from msp430all.sh.  Remove
566*75fd0b74Schristos	MSP430_NAME and msp430X vars.
567*75fd0b74Schristos	* emulparams/msp430X.sh: New.
568*75fd0b74Schristos	* emulparams/score3_elf.sh: Rename from scoreelf.sh.  Remove
569*75fd0b74Schristos	SCORE_NAME and score7_elf ARCH setting.
570*75fd0b74Schristos	* emulparams/score7_elf.sh: New.
571*75fd0b74Schristos	* Makefile.am (eelf32bfin.c, eelf32bfinfd.c): Update dependencies.
572*75fd0b74Schristos	(emsp430.c, emsp430X.c, escore3_elf.c, escore7_elf.c): Likewise.
573*75fd0b74Schristos	* Makefile.in: Regenerate.
574*75fd0b74Schristos	* genscripts.sh: Delete customizer_script param.
575*75fd0b74Schristos
576*75fd0b74Schristos2014-05-28  Hans-Peter Nilsson  <hp@axis.com>
577*75fd0b74Schristos
578*75fd0b74Schristos	* Makefile.am: Change all rules with ${GENSCRIPTS}
579*75fd0b74Schristos	invocations to be just dependencies.
580*75fd0b74Schristos	($(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES))
581*75fd0b74Schristos	(run-genscripts): New rules.
582*75fd0b74Schristos	* Makefile.in: Regenerate.
583*75fd0b74Schristos
584*75fd0b74Schristos2014-05-27  DJ Delorie  <dj@redhat.com>
585*75fd0b74Schristos
586*75fd0b74Schristos	* ld/ldemul.h (extra_map_file_text): New field.
587*75fd0b74Schristos	(ldemul_extra_map_file_text): Declare.
588*75fd0b74Schristos	* ld/ldemul.c (ldemul_extra_map_file_text): Define.
589*75fd0b74Schristos	* ld/ldlang.c (lang_map): Call it.
590*75fd0b74Schristos
591*75fd0b74Schristos	* ld/emultempl/rxelf.em: Add extra_map_file_text hook.
592*75fd0b74Schristos	* ld/emultempl/aix.em: Add NULL extra_map_file_text hook.
593*75fd0b74Schristos	* ld/emultempl/armcoff.em: Likewise.
594*75fd0b74Schristos	* ld/emultempl/beos.em: Likewise.
595*75fd0b74Schristos	* ld/emultempl/elf32.em: Likewise.
596*75fd0b74Schristos	* ld/emultempl/generic.em: Likewise.
597*75fd0b74Schristos	* ld/emultempl/gld960.em: Likewise.
598*75fd0b74Schristos	* ld/emultempl/gld960c.em: Likewise.
599*75fd0b74Schristos	* ld/emultempl/linux.em: Likewise.
600*75fd0b74Schristos	* ld/emultempl/lnk960.em: Likewise.
601*75fd0b74Schristos	* ld/emultempl/m68kcoff.em: Likewise.
602*75fd0b74Schristos	* ld/emultempl/pe.em: Likewise.
603*75fd0b74Schristos	* ld/emultempl/pep.em: Likewise.
604*75fd0b74Schristos	* ld/emultempl/sunos.em: Likewise.
605*75fd0b74Schristos	* ld/emultempl/ticoff.em: Likewise.
606*75fd0b74Schristos	* ld/emultempl/vanilla.em: Likewise.
607*75fd0b74Schristos
608*75fd0b74Schristos2014-05-24  Alan Modra  <amodra@gmail.com>
609*75fd0b74Schristos
610*75fd0b74Schristos	* ldlang.c (base): Move variable to..
611*75fd0b74Schristos	* mri.c: ..here, and make static.
612*75fd0b74Schristos	* ldlang.h (base): Delete declaration.
613*75fd0b74Schristos
614*75fd0b74Schristos2014-05-20  Hans-Peter Nilsson  <hp@axis.com>
615*75fd0b74Schristos
616*75fd0b74Schristos	* Makefile.am (ALL_EMULATION_SOURCES): Add missing eelf32mbel_linux.c.
617*75fd0b74Schristos	* Makefile.in: Regenerate.
618*75fd0b74Schristos
619*75fd0b74Schristos2014-05-20  Alan Modra  <amodra@gmail.com>
620*75fd0b74Schristos
621*75fd0b74Schristos	PR 16952
622*75fd0b74Schristos	* emulparams/elf32ppccommon.sh (_SDA_BASE_, _SDA2_BASE_): Delete.
623*75fd0b74Schristos	* emultempl/ppc32elf.em (ppc_before_allocation): Call
624*75fd0b74Schristos	ppc_elf_maybe_strip_sdata_syms.
625*75fd0b74Schristos	* ldlang.c (size_input_section): Correct output_offset value
626*75fd0b74Schristos	for excluded input sections.
627*75fd0b74Schristos
628*75fd0b74Schristos2014-05-16  John Marino  <binutils@marino.st>
629*75fd0b74Schristos
630*75fd0b74Schristos	* configure.tgt: Add /lib to dragonfly NATIVE_LIB_DIRS.
631*75fd0b74Schristos
632*75fd0b74Schristos2014-05-11  Chung-Lin Tang  <cltang@codesourcery.com>
633*75fd0b74Schristos
634*75fd0b74Schristos	* emulparams/nios2linux.sh (OTHER_GOT_SYMBOLS): Wrap _gp in HIDDEN(),
635*75fd0b74Schristos	and gp in PROVIDE_HIDDEN.
636*75fd0b74Schristos
637*75fd0b74Schristos2014-05-10  Hans-Peter Nilsson  <hp@bitrange.com>
638*75fd0b74Schristos
639*75fd0b74Schristos	* ldlang.c (lang_finish): Don't call bfd_link_hash_table_free here.
640*75fd0b74Schristos	(output_bfd_hash_table_free_fn): New variable.
641*75fd0b74Schristos	(open_output): Save the _bfd_link_hash_table_free function for the
642*75fd0b74Schristos	output_bfd into output_bfd_hash_table_free_fn.
643*75fd0b74Schristos	* ldmain.c (ld_cleanup): If set, call output_bfd_hash_table_free_fn
644*75fd0b74Schristos	on link_info.hash.
645*75fd0b74Schristos	* ldlang.h (output_bfd_hash_table_free_fn): Declare.
646*75fd0b74Schristos
647*75fd0b74Schristos2014-05-02  Alan Modra  <amodra@gmail.com>
648*75fd0b74Schristos
649*75fd0b74Schristos	* emultempl/metagelf.em: Update bfd target vector naming.
650*75fd0b74Schristos	* emultempl/nios2elf.em: Likewise.
651*75fd0b74Schristos	* emultempl/spuelf.em: Likewise.
652*75fd0b74Schristos	* emultempl/tic6xdsbt.em: Likewise.
653*75fd0b74Schristos
654*75fd0b74Schristos2014-04-22  Christian Svensson  <blue@cmd.nu>
655*75fd0b74Schristos
656*75fd0b74Schristos	* Makefile.am: Remove openrisc and or32 support.  Add support for or1k.
657*75fd0b74Schristos	* configure.tgt: Likewise.
658*75fd0b74Schristos	* emulparams/elf32or1k.sh: New file.
659*75fd0b74Schristos	* emulparams/elf32or1k_linux.sh: New file.
660*75fd0b74Schristos	* emulparams/elf32openrisc.sh: Delete.
661*75fd0b74Schristos	* emulparams/or32.sh: Delete.
662*75fd0b74Schristos	* emulparams/or32elf.sh: Delete.
663*75fd0b74Schristos	* scripttempl/or32.sc: Delete.
664*75fd0b74Schristos	* Makefile.in: Regenerate.
665*75fd0b74Schristos
666*75fd0b74Schristos2014-04-21  Richard Henderson  <rth@redhat.com>
667*75fd0b74Schristos
668*75fd0b74Schristos	* emultempl/alphaelf.em (alpha_after_parse): Enable 2 relax passes.
669*75fd0b74Schristos
670*75fd0b74Schristos2014-04-16  Steve Ellcey  <sellcey@mips.com>
671*75fd0b74Schristos
672*75fd0b74Schristos	* emultempl/elf32.em: Include safe-ctype.h.
673*75fd0b74Schristos
674*75fd0b74Schristos2014-04-16  Steve Ellcey  <sellcey@mips.com>
675*75fd0b74Schristos
676*75fd0b74Schristos	* ldbuildid.c (generate_build_id): Add ATTRIBUTE_UNUSED to size arg.
677*75fd0b74Schristos
678*75fd0b74Schristos2014-04-09  Nick Clifton  <nickc@redhat.com>
679*75fd0b74Schristos
680*75fd0b74Schristos	* Makefile.am (default-manifest.o): Remove rule.
681*75fd0b74Schristos	(EMUL_EXTRA_BINARIES): Delete.
682*75fd0b74Schristos	(ALL_EMUL_EXTRA_BINARIES): Delete.
683*75fd0b74Schristos	(ld_new_DEPENDENCIES): Remove EMUL_EXTRA_BINARIES.
684*75fd0b74Schristos	(install-data-local): Remove EMUL_EXTRA_BINARIES.
685*75fd0b74Schristos	* Makefile.in: Regenerate.
686*75fd0b74Schristos	* configure.in (all_emul_extra_binaries): Delete.
687*75fd0b74Schristos	(EMUL_EXTRA_BINARIES): Remove.
688*75fd0b74Schristos	* configure: Regenerate.
689*75fd0b74Schristos	* configure.tgt (target_extra_binaries): Delete.
690*75fd0b74Schristos	* emultempl/default-manifest.rc: Delete.
691*75fd0b74Schristos	* ld.texinfo: Remove discussion of default manifest.
692*75fd0b74Schristos	* emulparams/i386pe.sh (DEFAULT_MANIFEST): Delete.
693*75fd0b74Schristos	* emulparams/i386pep.sh (DEFAULT_MANIFEST): Delete.
694*75fd0b74Schristos
695*75fd0b74Schristos2014-04-09  Alan Modra  <amodra@gmail.com>
696*75fd0b74Schristos
697*75fd0b74Schristos	* emultempl/spuelf.em: Include safe-ctype.h, remove duplicate errno.h.
698*75fd0b74Schristos	* emultempl/nds32elf.em: Include bfd_stdint.h.
699*75fd0b74Schristos	* po/POTFILES.in: Regenerate.
700*75fd0b74Schristos
701*75fd0b74Schristos2014-04-09  Alan Modra  <amodra@gmail.com>
702*75fd0b74Schristos
703*75fd0b74Schristos	* emultempl/ppc32elf.em (no_zero_padding, ppc_finish): New functions.
704*75fd0b74Schristos	(LDEMUL_FINISH): Define.
705*75fd0b74Schristos
706*75fd0b74Schristos2014-04-08  Nick Clifton  <nickc@redhat.com>
707*75fd0b74Schristos
708*75fd0b74Schristos	* scripttempl/pe.sc (R_RSRC): Remove default manifest.
709*75fd0b74Schristos	* scripttempl/pep.sc (R_RSRC): Remove default manifest.
710*75fd0b74Schristos
711*75fd0b74Schristos2014-04-08  Jon TURNEY  <jon.turney@dronecode.org.uk>
712*75fd0b74Schristos
713*75fd0b74Schristos	* emultempl/elf32.em (id_note_section_size, read_hex, write_build_id):
714*75fd0b74Schristos	Move code for parsing build-id option and calculating the build-id to...
715*75fd0b74Schristos	* ldbuildid.c: New file.
716*75fd0b74Schristos	* ldbuildid.h: New file.
717*75fd0b74Schristos	* Makefile.am (CFILES, HFILES, OFILES, ld_new_SOURCES): Add new
718*75fd0b74Schristos	files.
719*75fd0b74Schristos	* Makefile.in: Regenerate.
720*75fd0b74Schristos	* ld.texinfo: Update --build-id description to mention COFF
721*75fd0b74Schristos	support.
722*75fd0b74Schristos	* NEWS: Mention support for COFF build ids.
723*75fd0b74Schristos	* emultempl/pe.em (gld${EMULATION_NAME}_handle_option):
724*75fd0b74Schristos	(pecoff_checksum_contents, write_build_id, setup_build_id)
725*75fd0b74Schristos	(gld_${EMULATION_NAME}_after_open):  Handle and implement
726*75fd0b74Schristos	build-id option.
727*75fd0b74Schristos	* emultempl/pep.em: Likewise.
728*75fd0b74Schristos
729*75fd0b74Schristos2014-04-04  Cary Coutant  <ccoutant@google.com>
730*75fd0b74Schristos
731*75fd0b74Schristos	PR gold/16804
732*75fd0b74Schristos	* ld.texinfo: Document optional comma following output section
733*75fd0b74Schristos	command and overlay command.
734*75fd0b74Schristos
735*75fd0b74Schristos2014-04-04  Alan Modra  <amodra@gmail.com>
736*75fd0b74Schristos
737*75fd0b74Schristos	* ldlang.c (lang_size_sections_1 <lang_input_section_enum>): Use
738*75fd0b74Schristos	current "fill", not "output_section_statement->fill".
739*75fd0b74Schristos
740*75fd0b74Schristos2014-03-31  Nick Clifton  <nickc@redhat.com>
741*75fd0b74Schristos
742*75fd0b74Schristos	PR ld/16744
743*75fd0b74Schristos	* emultempl/elf32.em (_after_open): Create a .note.GNU-stack
744*75fd0b74Schristos	section when performing a relocatable link with -z [no]execstack
745*75fd0b74Schristos	specified.
746*75fd0b74Schristos
747*75fd0b74Schristos2014-03-27  H.J. Lu  <hongjiu.lu@intel.com>
748*75fd0b74Schristos
749*75fd0b74Schristos	PR ld/16756
750*75fd0b74Schristos	* ldmain.c (symbol_warning): New function.
751*75fd0b74Schristos	(warning_callback): Use it.  Scan all input files for a reference
752*75fd0b74Schristos	to SYMBOL.
753*75fd0b74Schristos
754*75fd0b74Schristos2014-03-21  Christopher Faylor  <me.cygwin2013@cgf.cx>
755*75fd0b74Schristos
756*75fd0b74Schristos	* ld.texinfo: Document change in handling of --enable-auto-image-base.
757*75fd0b74Schristos	* emultempl/pe.em (pe_auto_image_base): Set to default base.
758*75fd0b74Schristos	(gld_${EMULATION_NAME}_list_options): Change usage message to reflect
759*75fd0b74Schristos	optional --enable-auto-image-base argument.
760*75fd0b74Schristos	(gld${EMULATION_NAME}_handle_option): Handle optional
761*75fd0b74Schristos	--enable-auto-image-base argument.
762*75fd0b74Schristos	(compute_dll_image_base): Eliminate constant.  Use pe_auto_image_base.
763*75fd0b74Schristos
764*75fd0b74Schristos2014-03-19  Nick Clifton  <nickc@redhat.com>
765*75fd0b74Schristos
766*75fd0b74Schristos	* Makefile.am (default-manifest.o): Use WINDRES_FOR_TARGET.
767*75fd0b74Schristos	* Makefile.in: Regenerate.
768*75fd0b74Schristos	* emultempl/default-manifest.rc: Fix typo.
769*75fd0b74Schristos	* scripttempl/pe.sc (R_RSRC): Fix default-manifest exclusion.
770*75fd0b74Schristos	(.rsrc): Add SUBALIGN(4).  Remove SORT.
771*75fd0b74Schristos	* scripttempl/pep.sc: Likewise.
772*75fd0b74Schristos
773*75fd0b74Schristos2014-03-17  Christopher Faylor  <me.cygwin2014@cgf.cx>
774*75fd0b74Schristos
775*75fd0b74Schristos	* Makefile.am: Use host version of windres.
776*75fd0b74Schristos	* Makefile.in: Regenerate.
777*75fd0b74Schristos
778*75fd0b74Schristos2014-03-14  Romain Geissler  <romain.geissler@amadeus.com>
779*75fd0b74Schristos	    Alan Modra  <amodra@gmail.com>
780*75fd0b74Schristos
781*75fd0b74Schristos	* ldlang.h (full_name_provided): New input flag.
782*75fd0b74Schristos	* ldlang.c (new_afile): Don't use lang_input_file_is_search_file_enum
783*75fd0b74Schristos	for -l:namespec.  Instead use lang_input_file_is_l_enum with
784*75fd0b74Schristos	full_name_provided flag.
785*75fd0b74Schristos	* ldlfile.c (ldfile_open_file_search): Don't complete lib name if
786*75fd0b74Schristos	full_name_provided flag is set.
787*75fd0b74Schristos	* emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
788*75fd0b74Schristos	Handle full_name_provided libraries.  Tidy EXTRA_SHLIB_EXTENSION
789*75fd0b74Schristos	support.  Set DT_NEEDED for -l:namespec as namespec.
790*75fd0b74Schristos	* emultempl/aix.em (ppc_after_open_output): Handle full_name_provided.
791*75fd0b74Schristos	* emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
792*75fd0b74Schristos	Don't handle full_name_provided libraries.
793*75fd0b74Schristos	* emultempl/pe.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
794*75fd0b74Schristos	* emultempl/pep.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
795*75fd0b74Schristos	* emultempl/vms.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
796*75fd0b74Schristos
797*75fd0b74Schristos2014-03-12  Alan Modra  <amodra@gmail.com>
798*75fd0b74Schristos
799*75fd0b74Schristos	* Makefile.in: Regenerate.
800*75fd0b74Schristos
801*75fd0b74Schristos2014-03-05  Alan Modra  <amodra@gmail.com>
802*75fd0b74Schristos
803*75fd0b74Schristos	Update copyright years.
804*75fd0b74Schristos
805*75fd0b74Schristos2014-03-04  Nick Clifton  <nickc@redhat.com>
806*75fd0b74Schristos
807*75fd0b74Schristos	* Makefile.am (ALL_EMUL_EXTRA_BINARIES): Remove default-manifest.
808*75fd0b74Schristos	* Makefile.in: Regenerate.
809*75fd0b74Schristos
810*75fd0b74Schristos2014-02-27  Yuri Gribov  <y.gribov@samsung.com>
811*75fd0b74Schristos
812*75fd0b74Schristos	* emultempl/armelf.em (OPTION_LONG_PLT): Define.
813*75fd0b74Schristos	(PARSE_AND_LIST_LONGOPTS): Add long-plt.
814*75fd0b74Schristos	(PARSE_AND_LIST_OPTIONS): Likewise.
815*75fd0b74Schristos	(PARSE_AND_LIST_ARGS_CASES): Handle long-plt.
816*75fd0b74Schristos	* ld.texinfo: Document --long-plt.
817*75fd0b74Schristos
818*75fd0b74Schristos2014-02-27  Alan Modra  <amodra@gmail.com>
819*75fd0b74Schristos
820*75fd0b74Schristos	* emulparams/elf32ppcvxworks.sh: Source plt_unwind.sh and
821*75fd0b74Schristos	use ppc32elf.em.
822*75fd0b74Schristos	* emultempl/ppc32elf.em (ppc_after_open): Don't compile for
823*75fd0b74Schristos	vxworks.
824*75fd0b74Schristos	(LDEMUL_AFTER_OPEN): Don't set for vxworks.
825*75fd0b74Schristos	(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Exclude
826*75fd0b74Schristos	-secure-plt, -bss-plt and -sdata-got when vxworks.
827*75fd0b74Schristos
828*75fd0b74Schristos2014-02-27  Nick Clifton  <nickc@redhat.com>
829*75fd0b74Schristos
830*75fd0b74Schristos	* configure.in (all_emul_extra_binaries): New variable.  Populated
831*75fd0b74Schristos	by invoking configure.tgt.
832*75fd0b74Schristos	(EMUL_EXTRA_BINARIES): New substitution.
833*75fd0b74Schristos	* configure: Regenerate.
834*75fd0b74Schristos	* configure.tgt (target_extra_binaries): New variable.  Set to
835*75fd0b74Schristos	default-manifest.o for Cygwin and MinGW targets.
836*75fd0b74Schristos	* Makefile.am (EMUL_EXTRA_BINARIES): New variable.  Initialised
837*75fd0b74Schristos	by the configure script.
838*75fd0b74Schristos	(ALL_EMUL_EXTRA_BINARIES): New variable.
839*75fd0b74Schristos	(default-manifest.o): New rule to build the default manifest.
840*75fd0b74Schristos	(ld_new_DEPENDENCIES): Add EMUL_EXTRA_BINARIES.
841*75fd0b74Schristos	(install-data-local): Add EMUL_EXTRA_BINARIES.
842*75fd0b74Schristos	* Makefile.in: Regenerate.
843*75fd0b74Schristos	* ld.texinfo: Document default manifest support.
844*75fd0b74Schristos	* emulparams/i386pe.sh (DEFAULT_MANIFEST): Define.
845*75fd0b74Schristos	* emulparams/i386pep.sh (DEFAULT_MANIFEST): Define.
846*75fd0b74Schristos	* emultempl/default-manifest.rc: New file.
847*75fd0b74Schristos	* scripttempl/pe.sc (R_RSRC): Include DEFAULT_MANIFEST, if defined.
848*75fd0b74Schristos	* scripttempl/pep.sc (R_RSRC): Likewise.
849*75fd0b74Schristos
850*75fd0b74Schristos2014-02-26  Dan Mick  <dan.mick@inktank.com>
851*75fd0b74Schristos
852*75fd0b74Schristos	PR ld/16569
853*75fd0b74Schristos	* ldcref.c (cref_sort_array): Compare unmangled names unless
854*75fd0b74Schristos	demanglng has been requiested.
855*75fd0b74Schristos	(output_one_cref): Output unmangled name unless demangling has
856*75fd0b74Schristos	been requested.
857*75fd0b74Schristos
858*75fd0b74Schristos2014-02-19  Igor Zamyatin  <igor.zamyatin@intel.com>
859*75fd0b74Schristos	    H.J. Lu  <hongjiu.lu@intel.com>
860*75fd0b74Schristos
861*75fd0b74Schristos	* emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): New.
862*75fd0b74Schristos
863*75fd0b74Schristos2014-02-19  Alan Modra  <amodra@gmail.com>
864*75fd0b74Schristos
865*75fd0b74Schristos	* emultempl/ppc64elf.em (params): Init new field.
866*75fd0b74Schristos	(ppc_create_output_section_statements): Set params.save_restore_funcs
867*75fd0b74Schristos	default.
868*75fd0b74Schristos	(PARSE_AND_LIST_*): Add support for --save-restore-funcs and
869*75fd0b74Schristos	--no-save-restore-funcs.
870*75fd0b74Schristos
871*75fd0b74Schristos2014-02-17  Alan Modra  <amodra@gmail.com>
872*75fd0b74Schristos
873*75fd0b74Schristos	* emultemps/ppc64elf.em (params): New static struct replacing
874*75fd0b74Schristos	various other static vars.  Adjust code throughout file.
875*75fd0b74Schristos
876*75fd0b74Schristos2014-02-17  Alan Modra  <amodra@gmail.com>
877*75fd0b74Schristos
878*75fd0b74Schristos	* emultempl/ppc32elf.em (ppc_after_open_output): Really enable
879*75fd0b74Schristos	ppc476 workaround for ld -r.
880*75fd0b74Schristos
881*75fd0b74Schristos2014-02-12  Alan Modra  <amodra@gmail.com>
882*75fd0b74Schristos
883*75fd0b74Schristos	* emultempl/ppc32elf.em (pagesize): New static var.
884*75fd0b74Schristos	(ppc_after_open_output): Set params.pagesize_p2 from pagesize.
885*75fd0b74Schristos	(PARSE_AND_LIST_ARGS_CASES): Adjust to use pagesize.
886*75fd0b74Schristos
887*75fd0b74Schristos2014-02-11  Andrew Pinski  <apinski@cavium.com>
888*75fd0b74Schristos
889*75fd0b74Schristos	* emulparams/aarch64linux32.sh (LIBPATH_SUFFIX): Change to ilp32.
890*75fd0b74Schristos	(ELF_INTERPRETER_NAME): Define.
891*75fd0b74Schristos	* emulparams/aarch64linux32b.sh (ELF_INTERPRETER_NAME): Define.
892*75fd0b74Schristos
893*75fd0b74Schristos2014-02-10  Alan Modra  <amodra@gmail.com>
894*75fd0b74Schristos
895*75fd0b74Schristos	* po/ld.pot: Regenerate.
896*75fd0b74Schristos
897*75fd0b74Schristos2014-02-03  Alan Modra  <amodra@gmail.com>
898*75fd0b74Schristos
899*75fd0b74Schristos	* emultempl/ppc32elf.em (no_tls_get_addr_opt, emit_stub_syms)
900*75fd0b74Schristos	plt_style): Delete.  Adjust all refs to instead use..
901*75fd0b74Schristos	(params): ..this.  New variable.
902*75fd0b74Schristos	(ppc_after_open_output): New function.  Tweak params and pass to
903*75fd0b74Schristos	ppc_elf_link_params.
904*75fd0b74Schristos	(ppc_after_open): Adjust ppc_elf_select_plt_layout call.
905*75fd0b74Schristos	(ppc_before_allocation): Adjust ppc_elf_tls_setup call.  Enable
906*75fd0b74Schristos	relaxation for ppc476 workaround.
907*75fd0b74Schristos	(PARSE_AND_LIST_*): Add --{no-,}ppc476-workaround support.
908*75fd0b74Schristos	(LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
909*75fd0b74Schristos
910*75fd0b74Schristos2014-02-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
911*75fd0b74Schristos
912*75fd0b74Schristos	* ld/ld.texinfo: Change ALIGN_WITH_INPUT documentation.
913*75fd0b74Schristos	* ld/ldlang.c (lang_size_sections_1): Add dotdelta
914*75fd0b74Schristos	variable which reflects the VMA change due to alignment
915*75fd0b74Schristos	requirements.  Use dotdelta do change the LMA if
916*75fd0b74Schristos	ALIGN_WITH_INPUT is requested.
917*75fd0b74Schristos
918*75fd0b74Schristos2014-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
919*75fd0b74Schristos
920*75fd0b74Schristos	* emultempl/mmix-elfnmmo.em (mmix_after_allocation): Fix typo in
921*75fd0b74Schristos	call to bfd_set_section_vma exposed by recent bfd_set_section_vma
922*75fd0b74Schristos	change.
923*75fd0b74Schristos
924*75fd0b74Schristos2014-01-30  Sandra Loosemore  <sandra@codesourcery.com>
925*75fd0b74Schristos
926*75fd0b74Schristos	* Makefile.am (enios2elf.c, enios2linux.c): Update dependencies.
927*75fd0b74Schristos	* Makefile.in: Regenerated.
928*75fd0b74Schristos	* emulparams/nios2elf.sh (EXTRA_EM_FILE): Set.
929*75fd0b74Schristos	* emulparams/nios2linux.sh (EXTRA_EM_FILE): Set.
930*75fd0b74Schristos	* emultempl/nios2elf.em: New file.
931*75fd0b74Schristos	* gen-doc.texi (NIOSII): Set.
932*75fd0b74Schristos	* ld.texinfo (NIOSII): Set.
933*75fd0b74Schristos
934*75fd0b74Schristos2014-01-28  Nick Clifton  <nickc@redhat.com>
935*75fd0b74Schristos
936*75fd0b74Schristos	* Makefile.am: Remove obsolete MSP430 emulations.
937*75fd0b74Schristos	* configure.tgt: Likewise.
938*75fd0b74Schristos	* emulparams/msp430all.sh: Likewise.
939*75fd0b74Schristos	* Makefile.in: Regenerate.
940*75fd0b74Schristos
941*75fd0b74Schristos2014-01-24  H.J. Lu  <hongjiu.lu@intel.com>
942*75fd0b74Schristos
943*75fd0b74Schristos	PR ld/16498
944*75fd0b74Schristos	* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Improve
945*75fd0b74Schristos	orphaned TLS section handling.
946*75fd0b74Schristos
947*75fd0b74Schristos2014-01-24  Alan Modra  <amodra@gmail.com>
948*75fd0b74Schristos
949*75fd0b74Schristos	* ldlang.c (lang_output_section_find_by_flags): Be careful to
950*75fd0b74Schristos	test look->bfd_section->flags if available rather than
951*75fd0b74Schristos	look->flags.  Separate SEC_THREAD_LOCAL handling from
952*75fd0b74Schristos	SEC_READONLY loop, and rewrite.
953*75fd0b74Schristos
954*75fd0b74Schristos2014-01-22  Alan Modra  <amodra@gmail.com>
955*75fd0b74Schristos
956*75fd0b74Schristos	* ldlang.c (asneeded_list_head, asneeded_list_tail): New vars.
957*75fd0b74Schristos	(lang_init): Initialise them.
958*75fd0b74Schristos	(lang_print_asneeded): New function.
959*75fd0b74Schristos	(lang_process): Call lang_print_asneeded.
960*75fd0b74Schristos	* ldlang.h (struct asneeded_minfo): New.
961*75fd0b74Schristos	(asneeded_list_tail): Declare.
962*75fd0b74Schristos	* ldmain.c (add_archive_element): Improve archive map heading.
963*75fd0b74Schristos	* ldmisc.c (minfo): Stash --as-needed info.
964*75fd0b74Schristos
965*75fd0b74Schristos2014-01-22  Alan Modra  <amodra@gmail.com>
966*75fd0b74Schristos
967*75fd0b74Schristos	* ld.h (struct map_symbol_def): Move to..
968*75fd0b74Schristos	* ldlang.h: ..here.
969*75fd0b74Schristos	* ldlang.c (print_assignment): Don't set expld.assign_name to dot.
970*75fd0b74Schristos
971*75fd0b74Schristos2014-01-22  Alan Modra  <amodra@gmail.com>
972*75fd0b74Schristos
973*75fd0b74Schristos	* ld.texinfo (Output Section Discarding): Mention assigning to dot
974*75fd0b74Schristos	as a way of keeping otherwise empty sections.
975*75fd0b74Schristos	* ldexp.c (is_dot, is_value, is_sym_value, is_dot_ne_0,
976*75fd0b74Schristos	is_dot_plus_0, is_align_conditional): New predicates.
977*75fd0b74Schristos	(exp_fold_tree_1): Set SEC_KEEP when assigning to dot inside an
978*75fd0b74Schristos	output section, except for some special cases.
979*75fd0b74Schristos	* scripttempl/elfmicroblaze.sc: Use canonical form to align at
980*75fd0b74Schristos	end of .heap and .stack.
981*75fd0b74Schristos
982*75fd0b74Schristos2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
983*75fd0b74Schristos
984*75fd0b74Schristos	* emulparams/aarch64linuxb.sh (ELF_INTERPRETER_NAME): Define.
985*75fd0b74Schristos
986*75fd0b74Schristos2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
987*75fd0b74Schristos
988*75fd0b74Schristos	* emulparams/aarch64linux.sh (ELF_INTERPRETER_NAME): Define.
989*75fd0b74Schristos
990*75fd0b74Schristos2014-01-20  Alan Modra  <amodra@gmail.com>
991*75fd0b74Schristos
992*75fd0b74Schristos	* ldlang.h (struct lang_definedness_hash_entry): Add by_object and
993*75fd0b74Schristos	by_script.  Make iteration a single bit field.
994*75fd0b74Schristos	(lang_track_definedness, lang_symbol_definition_iteration): Delete.
995*75fd0b74Schristos	(lang_symbol_defined): Declare.
996*75fd0b74Schristos	* ldlang.c (lang_statement_iteration): Expand comment a little.
997*75fd0b74Schristos	(lang_init <lang_definedness_table>): Make it bigger.
998*75fd0b74Schristos	(lang_track_definedness, lang_symbol_definition): Delete.
999*75fd0b74Schristos	(lang_definedness_newfunc): Update.
1000*75fd0b74Schristos	(lang_symbol_defined): New function.
1001*75fd0b74Schristos	(lang_update_definedness): Create entries here.  Do track whether
1002*75fd0b74Schristos	script definition of symbol is valid, even when also defined in
1003*75fd0b74Schristos	an object file.
1004*75fd0b74Schristos	* ldexp.c (fold_name <DEFINED>): Update.
1005*75fd0b74Schristos	(fold_name <NAME>): Allow self-assignment for absolute symbols
1006*75fd0b74Schristos	defined in a linker script.
1007*75fd0b74Schristos
1008*75fd0b74Schristos2014-01-20  Guy Martin <gmsoft@tuxicoman.be>
1009*75fd0b74Schristos	    Alan Modra  <amodra@gmail.com>
1010*75fd0b74Schristos
1011*75fd0b74Schristos	* ldlang.h (lang_output_section_get): Define.
1012*75fd0b74Schristos	* ldlang.c (lang_output_section_get): Likewise.
1013*75fd0b74Schristos	(init_os): Set the output_section userdata to the output
1014*75fd0b74Schristos	section statement.
1015*75fd0b74Schristos	* emultempl/hppaelf.em: Use lang_output_section_get instead of
1016*75fd0b74Schristos	lang_output_section_find where applicable.
1017*75fd0b74Schristos	* emultempl/aarch64elf.em: Likewise.
1018*75fd0b74Schristos	* emultempl/aix.em: Likewise.
1019*75fd0b74Schristos	* emultempl/armelf.em: Likewise.
1020*75fd0b74Schristos	* emultempl/m68hc1xelf.em: Likewise.
1021*75fd0b74Schristos	* emultempl/metagelf.em: Likewise.
1022*75fd0b74Schristos	* emultempl/mipself.em: Likewise.
1023*75fd0b74Schristos	* emultempl/ppc64elf.em: Likewise.
1024*75fd0b74Schristos	* emultempl/spuelf.em: Likewise.
1025*75fd0b74Schristos
1026*75fd0b74Schristos2014-01-17  Alan Modra  <amodra@gmail.com>
1027*75fd0b74Schristos
1028*75fd0b74Schristos	* genscripts.sh (COMPILE_IN): Don't set if already set.
1029*75fd0b74Schristos	* emulparams/nds32elf.sh: Don't clear EMULATION_LIBPATH, set
1030*75fd0b74Schristos	COMPILE_IN=no.
1031*75fd0b74Schristos	* emulparams/nds32elf16m.sh: Likewise.
1032*75fd0b74Schristos	* emulparams/nds32elf_linux.sh: Likewise.
1033*75fd0b74Schristos	* emultempl/aix.em: Test COMPILE_IN value is "yes".
1034*75fd0b74Schristos	* emultempl/armcoff.em: Likewise.
1035*75fd0b74Schristos	* emultempl/elf32.em: Likewise.
1036*75fd0b74Schristos	* emultempl/generic.em: Likewise.
1037*75fd0b74Schristos	* emultempl/gld960.em: Likewise.
1038*75fd0b74Schristos	* emultempl/gld960c.em: Likewise.
1039*75fd0b74Schristos	* emultempl/linux.em: Likewise.
1040*75fd0b74Schristos	* emultempl/lnk960.em: Likewise.
1041*75fd0b74Schristos	* emultempl/m68kcoff.em: Likewise.
1042*75fd0b74Schristos	* emultempl/sunos.em: Likewise.
1043*75fd0b74Schristos	* emultempl/ticoff.em: Likewise.
1044*75fd0b74Schristos
1045*75fd0b74Schristos2014-01-16  H.J. Lu  <hongjiu.lu@intel.com>
1046*75fd0b74Schristos
1047*75fd0b74Schristos	PR ld/16456
1048*75fd0b74Schristos	* genscripts.sh: Don't search directory with LIBPATH_SUFFIX_SKIP
1049*75fd0b74Schristos	suffix.
1050*75fd0b74Schristos	* emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX_SKIP): Set to 64
1051*75fd0b74Schristos	for elf32_x86_64 emulation.
1052*75fd0b74Schristos	* emulparams/elf_i386.sh (LIBPATH_SUFFIX_SKIP): Set to 64
1053*75fd0b74Schristos	for elf_i386 emulation.
1054*75fd0b74Schristos
1055*75fd0b74Schristos2014-01-16  Alan Modra  <amodra@gmail.com>
1056*75fd0b74Schristos
1057*75fd0b74Schristos	* ld.h (fat_section_userdata_type, get_userdata): Move to..
1058*75fd0b74Schristos	* ldlang.h (input_section_userdata_type, get_userdata): ..here.
1059*75fd0b74Schristos	* ldlang.c (init_map_userdata): Delete.  Fold into..
1060*75fd0b74Schristos	(sort_def_symbol): ..here.  Don't attach input section userdata
1061*75fd0b74Schristos	to output sections or global bfd sections.
1062*75fd0b74Schristos	(lang_map): Don't pre-allocate input section userdata.
1063*75fd0b74Schristos	(init_os): Don't allocate userdata for output sections.
1064*75fd0b74Schristos	(print_all_symbols): Update.
1065*75fd0b74Schristos
1066*75fd0b74Schristos2014-01-15  H.J. Lu  <hongjiu.lu@intel.com>
1067*75fd0b74Schristos
1068*75fd0b74Schristos	* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1069*75fd0b74Schristos	Silence uninitialized warning on ehdr_start_save with older
1070*75fd0b74Schristos	GCC.
1071*75fd0b74Schristos
1072*75fd0b74Schristos2014-01-15  Alan Modra  <amodra@gmail.com>
1073*75fd0b74Schristos
1074*75fd0b74Schristos	* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define
1075*75fd0b74Schristos	__ehdr_start before size_dynamic_sections and restore afterwards.
1076*75fd0b74Schristos
1077*75fd0b74Schristos2014-01-10  Alan Modra  <amodra@gmail.com>
1078*75fd0b74Schristos
1079*75fd0b74Schristos	PR ld/14207
1080*75fd0b74Schristos	PR ld/16322
1081*75fd0b74Schristos	PR binutils/16323
1082*75fd0b74Schristos	* ldlang.c (lang_size_sections): Remove unneeded RELRO base
1083*75fd0b74Schristos	adjust.  Tidy comments.
1084*75fd0b74Schristos	* ld.texinfo (DATA_SEGMENT_RELRO_END): Correct description.
1085*75fd0b74Schristos
1086*75fd0b74Schristos2014-01-10  Hans-Peter Nilsson  <hp@axis.com>
1087*75fd0b74Schristos
1088*75fd0b74Schristos	* emulparams/crislinux.sh (COMMONPAGESIZE): Define.
1089*75fd0b74Schristos
1090*75fd0b74Schristos2014-01-08  H.J. Lu  <hongjiu.lu@intel.com>
1091*75fd0b74Schristos
1092*75fd0b74Schristos	PR ld/14207
1093*75fd0b74Schristos	PR ld/16322
1094*75fd0b74Schristos	PR binutils/16323
1095*75fd0b74Schristos	* ldlang.c (lang_size_sections): Properly align RELRO base.
1096*75fd0b74Schristos
1097*75fd0b74Schristos2014-01-08  H.J. Lu  <hongjiu.lu@intel.com>
1098*75fd0b74Schristos
1099*75fd0b74Schristos	* ldver.c (ldversion): Update copyright year to 2014.
1100*75fd0b74Schristos
1101*75fd0b74SchristosFor older changes see ChangeLog-2013
1102*75fd0b74Schristos
1103*75fd0b74SchristosCopyright (C) 2014 Free Software Foundation, Inc.
1104*75fd0b74Schristos
1105*75fd0b74SchristosCopying and distribution of this file, with or without modification,
1106*75fd0b74Schristosare permitted in any medium without royalty provided the copyright
1107*75fd0b74Schristosnotice and this notice are preserved.
1108*75fd0b74Schristos
1109*75fd0b74SchristosLocal Variables:
1110*75fd0b74Schristosmode: change-log
1111*75fd0b74Schristosleft-margin: 8
1112*75fd0b74Schristosfill-column: 74
1113*75fd0b74Schristosversion-control: never
1114*75fd0b74SchristosEnd:
1115