xref: /openbsd/gnu/usr.bin/binutils/ld/ChangeLog (revision 007c2a45)
1*007c2a45Smiod2004-05-13  Joel Sherrill <joel@oarcorp.com>
26978ef19Sespie
3*007c2a45Smiod	* configure.tgt (or32-*-rtems*): Switch to elf and
4*007c2a45Smiod	support versioned targets.
5b55d4692Sfgsch
6*007c2a45Smiod2004-05-13  Nick Clifton  <nickc@redhat.com>
7*007c2a45Smiod
8*007c2a45Smiod	* po/fr.po: Updated French translation.
9*007c2a45Smiod
10*007c2a45Smiod2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
11*007c2a45Smiod
12*007c2a45Smiod	* emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
13*007c2a45Smiod	elf32-frvfdpic.
14*007c2a45Smiod
15*007c2a45Smiod2004-04-29  Alan Modra  <amodra@bigpond.net.au>
16*007c2a45Smiod
17*007c2a45Smiod	* pe-dll.c: Revert changes accidentally committed 2004-03-08.
18*007c2a45Smiod	(fill_edata): Correct pointer arithmetic.
19*007c2a45Smiod
20*007c2a45Smiod2004-04-21  Hans-Peter Nilsson  <hp@axis.com>
21*007c2a45Smiod
22*007c2a45Smiod	* NEWS: Mention change in DEFINED semantics.
23*007c2a45Smiod
24*007c2a45Smiod2004-04-20  Chris Demetriou  <cgd@broadcom.com>
25*007c2a45Smiod
26*007c2a45Smiod	* NEWS: Note that MIPS --embedded-relocs option is deprecated.
27*007c2a45Smiod
28*007c2a45Smiod2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
29*007c2a45Smiod
30*007c2a45Smiod	* configure.host: Remove mips*-dec-bsd* target.
31*007c2a45Smiod	* configure.tgt: Likewise.
32*007c2a45Smiod
33*007c2a45Smiod2004-04-09  Daniel Jacobowitz  <drow@mvista.com>
34b55d4692Sfgsch
35c074d1c9Sdrahn	Merge from mainline:
36*007c2a45Smiod	2004-03-30  Nick Clifton  <nickc@redhat.com>
37c074d1c9Sdrahn	* po/sv.po: Updated Swedish translation.
38c074d1c9Sdrahn
39*007c2a45Smiod	2004-03-20  Alexandre Oliva  <aoliva@redhat.com>
40*007c2a45Smiod	* emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
41c074d1c9Sdrahn
42*007c2a45Smiod	2004-03-08  Danny Smith  <dannysmith@users.sourceforge.net>
43*007c2a45Smiod	* pe-dll.c (pe_dll_generate_implib): Skip sections marked as
44*007c2a45Smiod	private when building implib.
45c074d1c9Sdrahn
46*007c2a45Smiod	2004-03-01  Andreas Schwab  <schwab@suse.de>
47*007c2a45Smiod	* ld.texinfo (Options): Fix example for --wrap.
48c074d1c9Sdrahn
49*007c2a45Smiod	2004-02-25  Danny Smith  <dannysmith@users.sourceforge.net>
50*007c2a45Smiod	* pe-dll.c (fill_edata): Check that exported_symbol_sections is
51*007c2a45Smiod	not NULL.
52c074d1c9Sdrahn
53*007c2a45Smiod	2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
54*007c2a45Smiod	* ldlang.c (lang_check): Use %P, not %E, in error message.
55c074d1c9Sdrahn
56*007c2a45Smiod2004-04-08  Richard Sandiford  <rsandifo@redhat.com>
57c074d1c9Sdrahn
58*007c2a45Smiod	* emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
59*007c2a45Smiod	* emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
60*007c2a45Smiod	* emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
61*007c2a45Smiod	* emultempl/irix.em: New file.
62*007c2a45Smiod	* Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
63*007c2a45Smiod	dependencies.
64c074d1c9Sdrahn	* Makefile.in: Regenerate.
65c074d1c9Sdrahn
66*007c2a45Smiod2004-04-08  Alan Modra  <amodra@bigpond.net.au>
67c074d1c9Sdrahn
68*007c2a45Smiod	Apply from mainline.
69*007c2a45Smiod	2004-03-27  Alan Modra  <amodra@bigpond.net.au>
70*007c2a45Smiod	* emultempl/elf32.em: Update new bfd_elf_discard_info name.
71c074d1c9Sdrahn	* emultempl/hppaelf.em: Likewise.
72c074d1c9Sdrahn	* emultempl/ppc64elf.em: Likewise.
73*007c2a45Smiod	* emultempl/sh64elf.em: Likewise.
74c074d1c9Sdrahn
75*007c2a45Smiod	2004-03-25  Alan Modra  <amodra@bigpond.net.au>
76*007c2a45Smiod	* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
77*007c2a45Smiod	size_dynamic_sections call.
78c074d1c9Sdrahn
79*007c2a45Smiod	2004-03-20  H.J. Lu  <hongjiu.lu@intel.com>
80*007c2a45Smiod	* lexsup.c (parse_args): Don't set unresolved_syms_in_objects
81*007c2a45Smiod	or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
82c074d1c9Sdrahn
83*007c2a45Smiod	2004-03-18  Alan Modra  <amodra@bigpond.net.au>
84*007c2a45Smiod	* ld.texinfo: Add --as-needed doco.
85*007c2a45Smiod	* ldmain.c (as_needed): New global var.
86*007c2a45Smiod	* ldmain.h (as_needed): Declare.
87*007c2a45Smiod	* lexsup.c (option_values): Add OPTION_AS_NEEDED and
88*007c2a45Smiod	OPTION_NO_AS_NEEDED.
89*007c2a45Smiod	(ld_options): Likewise.
90b55d4692Sfgsch	(parse_args): Handle them.
91*007c2a45Smiod	* ldlang.h (lang_input_statement_type): Add as_needed field.
92*007c2a45Smiod	* ldlang.c (new_afile): Set p->as_needed.
93*007c2a45Smiod	* emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
94*007c2a45Smiod	(gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
95*007c2a45Smiod	(ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
96*007c2a45Smiod	* ldlang.c (open_input_bfds): Remove useless cast.
97*007c2a45Smiod	(lang_do_assignments_1): Likewise.
98*007c2a45Smiod	(lang_for_each_input_section): Delete.
99b55d4692Sfgsch
100*007c2a45Smiod2004-03-23  Alan Modra  <amodra@bigpond.net.au>
101b55d4692Sfgsch
102*007c2a45Smiod	PR 51.
103*007c2a45Smiod	* emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
104*007c2a45Smiod	link_info.wrap_char.
105b55d4692Sfgsch
106*007c2a45Smiod2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
107b55d4692Sfgsch
108*007c2a45Smiod	* configure.tgt: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
109b55d4692Sfgsch
110*007c2a45Smiod2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
111b55d4692Sfgsch
112*007c2a45Smiod	* ldlang.c (lang_add_section): Don't force SEC_LOAD on
113*007c2a45Smiod	SEC_THREAD_LOCAL.
114*007c2a45Smiod	(IGNORE_SECTION): Ignore .tbss sections too.
115*007c2a45Smiod	(lang_size_sections_1): .tbss sections do not advance dot.
116b55d4692Sfgsch
117*007c2a45Smiod2004-02-23  Nathan Sidwell  <nathan@codesourcery.com>
118b55d4692Sfgsch
119*007c2a45Smiod	* ldlang.h (struct lang_output_section_state): Change processed
120*007c2a45Smiod	field's type.
121*007c2a45Smiod	* ldexp.c (check, invalid): Remove.
122*007c2a45Smiod	(fold_name): Move valid_p assignments. Create undefined symbol
123*007c2a45Smiod	when needed. Directly exampine section's processd flag.
124*007c2a45Smiod	* ldlang.c (lang_output_section_statement_lookup): Adjust
125*007c2a45Smiod	processed field init.
126*007c2a45Smiod	(lang_size_sections_1): Allow LOADADDR when determining section's
127*007c2a45Smiod	VMA. Adjust error message. Fold data statement's expr.
128*007c2a45Smiod	(lang_size_sections): Correctly increment lang_statement_iteration.
129b55d4692Sfgsch
130*007c2a45Smiod2004-02-23  Alan Modra <amodra@bigpond.net.au>
131b55d4692Sfgsch
132*007c2a45Smiod	* ldexp.c (fold_tree): Follow indirect symbols.
133b55d4692Sfgsch
134*007c2a45Smiod2004-02-20  Nathan Sidwell  <nathan@codesourcery.com>
135b55d4692Sfgsch
136*007c2a45Smiod	* ldgram.y (exp): Add two operand ALIGN.
137*007c2a45Smiod	* ldexp.c (fold_binary): Add ALIGN_K case.
138*007c2a45Smiod	* ld.texinfo (ALIGN): Document two operand version.
139b55d4692Sfgsch
140*007c2a45Smiod2004-02-19  Nathan Sidwell  <nathan@codesourcery.com>
141b55d4692Sfgsch
142*007c2a45Smiod	* ldlang.c (map_input_to_output_sections): Initialize sections
143*007c2a45Smiod	mentioned in a data statement expression.
144*007c2a45Smiod	(lang_do_assignments_1): Add data statement's expression's
145*007c2a45Smiod	section's vma.
146b55d4692Sfgsch
147*007c2a45Smiod2004-02-18  Nathan Sidwell  <nathan@codesourcery.com>
148b55d4692Sfgsch
149*007c2a45Smiod	* ldgram.y (statement_anywhere): Add assert rule.
150*007c2a45Smiod	* ldlang.c (exp_init_os): Add assert case.
151b55d4692Sfgsch
152*007c2a45Smiod2004-02-14  Andrew Cagney  <cagney@redhat.com>
153b55d4692Sfgsch
154*007c2a45Smiod	* ldmain.c (remove_output): Call bfd_cache_close.
155b55d4692Sfgsch
156*007c2a45Smiod2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
157b55d4692Sfgsch
158*007c2a45Smiod	* emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
159*007c2a45Smiod	.MIPS.content* and .MIPS.events* sections.
160b55d4692Sfgsch
161*007c2a45Smiod2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
162b55d4692Sfgsch
163*007c2a45Smiod	* emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
164*007c2a45Smiod	.note.gnu.arm.ident to after allocated sections.  Mark its
165*007c2a45Smiod	address as 0.
166b55d4692Sfgsch
167*007c2a45Smiod2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
168b55d4692Sfgsch
169*007c2a45Smiod	* emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
170*007c2a45Smiod	* emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
171*007c2a45Smiod	* emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
172*007c2a45Smiod	* emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
173*007c2a45Smiod	* emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
174b55d4692Sfgsch
175*007c2a45Smiod2004-02-05  Nick Clifton  <nickc@redhat.com>
176b55d4692Sfgsch
177*007c2a45Smiod	* emultempl/pe.em (_after_open): Fix typo in previous delta.
178b55d4692Sfgsch
179*007c2a45Smiod2004-02-04  Danny Smith  <dannysmith@users.sourceforge.net>
180b55d4692Sfgsch
181*007c2a45Smiod	* emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
182b55d4692Sfgsch
183*007c2a45Smiod2004-01-28  Alan Modra  <amodra@bigpond.net.au>
184b55d4692Sfgsch
185*007c2a45Smiod	* genscripts.sh: Fix typo.
186b55d4692Sfgsch
187*007c2a45Smiod	* genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
188b55d4692Sfgsch
189*007c2a45Smiod2004-01-24  Jakub Jelinek  <jakub@redhat.com>
190b55d4692Sfgsch
191*007c2a45Smiod	* emulparams/elf64_ia64.sh: Put .rela.opd into
192*007c2a45Smiod	OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
193b55d4692Sfgsch
194*007c2a45Smiod2004-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
195b55d4692Sfgsch
196*007c2a45Smiod	* pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
197*007c2a45Smiod	* ld.texinfo (--omagic): Note that writable text section
198*007c2a45Smiod	does not conform to published PE-COFF specs.
199*007c2a45Smiod	(--enable-auto-import): Likewise.
200b55d4692Sfgsch
201*007c2a45Smiod2004-01-15  Alan Modra  <amodra@bigpond.net.au>
202b55d4692Sfgsch
203*007c2a45Smiod	* emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
204b55d4692Sfgsch
205*007c2a45Smiod2004-01-13  Nick Clifton  <nickc@redhat.com>
206b55d4692Sfgsch
207*007c2a45Smiod	* ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
208*007c2a45Smiod	which if true will prevent the LMA region being used as a
209*007c2a45Smiod	replacement for a default VMA region.
210*007c2a45Smiod	(lang_leave_output_section_statement): Pass extra parameter.
211*007c2a45Smiod	(lang_leave_overlay): Likewise.
212*007c2a45Smiod	* ld.texinfo (Output Section LMA): Document that the LMA
213*007c2a45Smiod	region can be set to the VMA region if no VMA has been set.
214*007c2a45Smiod	* ldlang.h (struct lang_output_section_phdr_list): Create a
215*007c2a45Smiod	typedef for this type.  Minor formatting fixes.
216b55d4692Sfgsch
217*007c2a45Smiod2004-01-13  Nick Clifton  <nickc@redhat.com>
218b55d4692Sfgsch
219*007c2a45Smiod	* ldlang.c (lang_size_sections_1): If dot is advanced, then
220*007c2a45Smiod	assume that the section should be allocated.
221b55d4692Sfgsch
222*007c2a45Smiod2004-01-13  Alan Modra  <amodra@bigpond.net.au>
223b55d4692Sfgsch
224*007c2a45Smiod	* ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
225*007c2a45Smiod	sections.  Do ignore SEC_NEVER_LOAD sections.
226*007c2a45Smiod	(lang_size_sections_1): Remove test made redundant with the above.
227b55d4692Sfgsch
228*007c2a45Smiod2004-01-09  Alan Modra  <amodra@bigpond.net.au>
229b55d4692Sfgsch
230*007c2a45Smiod	* emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
231*007c2a45Smiod	program_header_size.
232b55d4692Sfgsch
233*007c2a45Smiod2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
234b55d4692Sfgsch
235*007c2a45Smiod	2003-11-28  Alexandre Oliva  <aoliva@redhat.com>
236*007c2a45Smiod	* emulparams/elf32frvfd.sh (EMBEDDED): Clear.
237*007c2a45Smiod	2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
238*007c2a45Smiod	* emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
239*007c2a45Smiod	(MAXPAGESIZE): Set to 64Kb.
240*007c2a45Smiod	(OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
241*007c2a45Smiod	__ROFIXUP_END__.  Don't map .rofixup.got any more.
242*007c2a45Smiod	* emulparams/elf32frv.sh (NOP): Set.
243*007c2a45Smiod	2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
244*007c2a45Smiod	* configure.tgt: Add frv-*-*linux*.
245*007c2a45Smiod	2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
246*007c2a45Smiod	* Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
247*007c2a45Smiod	(eelf32frvfd.c): New.
248*007c2a45Smiod	* configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
249*007c2a45Smiod	* emulparams/elf32frv.sh: Reverted previous two patches.
250*007c2a45Smiod	* emulparams/elf32frvfd.sh: New.
251b55d4692Sfgsch	* Makefile.in: Rebuilt.
252*007c2a45Smiod	2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
253*007c2a45Smiod	* emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
254*007c2a45Smiod	.rofixup.got to .rofixup.
255*007c2a45Smiod	2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
256*007c2a45Smiod	* emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
257*007c2a45Smiod	(TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
258b55d4692Sfgsch
259*007c2a45Smiod2004-01-05  Jakub Jelinek  <jakub@redhat.com>
260b55d4692Sfgsch
261*007c2a45Smiod	* emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
262*007c2a45Smiod	* emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
263b55d4692Sfgsch
264*007c2a45Smiod2004-01-03  Alan Modra  <amodra@bigpond.net.au>
265b55d4692Sfgsch
266*007c2a45Smiod	* ldexp.c (align_n): Make static.
267*007c2a45Smiod	* ldexp.h (align_n): Delete declaration.
268*007c2a45Smiod	* ldlang.h (lang_enter_output_section_statement): Remove
269*007c2a45Smiod	block_value param.
270*007c2a45Smiod	* ldlang.c (lang_enter_output_section_statement): Likewise.
271*007c2a45Smiod	(TO_ADDR, TO_SIZE): Define.
272*007c2a45Smiod	(opb_shift): New var.
273*007c2a45Smiod	(init_opb): New function.
274*007c2a45Smiod	(print_input_section): Call init_opb and use TO_ADDR.
275*007c2a45Smiod	(print_data_statement, print_reloc_statement): Likewise.
276*007c2a45Smiod	(print_padding_statement): Likewise.
277*007c2a45Smiod	(size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
278*007c2a45Smiod	(lang_check_section_addresses): Likewise.
279*007c2a45Smiod	(lang_size_sections_1): Likewise.
280*007c2a45Smiod	(lang_do_assignments_1): Likewise.
281*007c2a45Smiod	(lang_set_startof): Likewise.
282*007c2a45Smiod	(lang_one_common): Likewise.  Combine power_of_two and opb_shift align.
283*007c2a45Smiod	(lang_process): Call init_opb.
284*007c2a45Smiod	(lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
285*007c2a45Smiod	(lang_enter_overlay_section): Adjust
286*007c2a45Smiod	lang_enter_output_section_statement call.
287*007c2a45Smiod	* ldgram.y: Likewise.
288*007c2a45Smiod	* mri.c (mri_draw_tree): Likewise.
289*007c2a45Smiod	* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
290*007c2a45Smiod	* emultempl/mmo.em (mmo_place_orphan): Likewise.
291*007c2a45Smiod	* emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2926978ef19Sespie
293*007c2a45Smiod	* ldfile.c (ldfile_set_output_arch): Add defarch param.
294*007c2a45Smiod	* ldfile.h (ldfile_set_output_arch): Ditto.
295*007c2a45Smiod	* emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
296*007c2a45Smiod	ldfile_set_output_arch.
297*007c2a45Smiod	* emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
298*007c2a45Smiod	* emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
299*007c2a45Smiod	* emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
300*007c2a45Smiod	* emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
301*007c2a45Smiod	* emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
302*007c2a45Smiod	* emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
303*007c2a45Smiod	* ldgram.y: Adjust ldfile_set_output_arch call.
304*007c2a45Smiod	* emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
305*007c2a45Smiod	* emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
306*007c2a45Smiod	* emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
307*007c2a45Smiod	* emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
308*007c2a45Smiod	* emultempl/gld960c.em (gld960_set_output_arch): Ditto.
309*007c2a45Smiod	* emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
310*007c2a45Smiod	* emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3116978ef19Sespie
312*007c2a45Smiod2004-01-02  Bernardo Innocenti  <bernie@develer.com>
3136978ef19Sespie
314*007c2a45Smiod	* configure.tgt: Add m68k-uClinux target.
3156978ef19Sespie
316*007c2a45SmiodFor older changes see ChangeLog-0203
3172159047fSniklas
3182159047fSniklasLocal Variables:
319b305b0f1Sespiemode: change-log
3202159047fSniklasleft-margin: 8
3212159047fSniklasfill-column: 74
3222159047fSniklasversion-control: never
3232159047fSniklasEnd:
324