include/elf/
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
f4984206
RS
12003-06-10 Richard Sandiford <rsandifo@redhat.com>
2
3 * configure.tgt (h8300*): Add h8300sxn emulations.
4 * Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o.
5 (eh8300sxn.c, eh8300sxnelf.c): New rules.
6 * Makefile.in: Regenerate.
7 * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
8
285272bd
AM
92003-06-10 Alan Modra <amodra@bigpond.net.au>
10
11 * emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
12 CTOR_START, CTOR_END, DTOR_START, DTOR_END): Don't define.
13
0b9a4d73
AM
142003-06-08 Alan Modra <amodra@bigpond.net.au>
15
16 * emultempl/ppc64elf.em (emit_stub_syms, toc_section): New vars.
17 (build_toc_list): New function.
18 (gld${EMULATION_NAME}_finish): Call build_toc_list and
19 ppc64_elf_reinit_toc. Adjust ppc64_elf_build_stubs call.
20 (OPTION_STUBSYMS): Define.
21 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
22 (PARSE_AND_LIST_OPTIONS): Document.
23 (PARSE_AND_LIST_ARGS_CASES): Handle.
24
c16d554d
RM
252003-06-05 Roland McGrath <roland@redhat.com>
26
27 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Remove
28 extra \t in -z noexecstack line.
29
9ee5e499
JJ
302003-05-23 Jakub Jelinek <jakub@redhat.com>
31
32 * ldgram.y (phdr_type): Grok PT_GNU_STACK.
33 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
34 -z execstack and -z noexecstack.
35 (gld${EMULATION_NAME}_list_options): Likewise.
36 * scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
37
65982ba6
MS
382003-06-03 Michael Snyder <msnyder@redhat.com>
39 and Bernd Schmidt <bernds@redhat.com>
40 and Alexandre Oliva <aoliva@redhat.com>
9ee5e499 41
65982ba6
MS
42 * Makefile.am: Add new emulations for h8300sx.
43 * Makefile.in: Regenerate.
44 * configure.tgt: Add new emulations.
45 * emulparams/h8300sx.sh: New emulation.
46 * emulparams/h8300sxelf.sh: Ditto.
47 * scripttempl/h8300sx.sc: Ditto.
48
6f6f27f8
L
492003-06-03 H.J. Lu <hongjiu.lu@intel.com>
50
51 * ldmisc.c: Include "bfdlink.h".
52 (error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
53 and -LD_DEFINITION_IN_DISCARDED_SECTION.
54
55 * Makefile.am: Rebuild dependency.
56 * Makefile.in: Regenerated.
57
308f753f
KK
582003-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
59
60 * emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
61 * emulparams/shlelf32_linux.sh (GENERATE_PIE_SCRIPT): Likewize.
62
03a1c9a7
NC
632003-06-02 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
64
65 * pe-dll.c (fill_edata): Scan table pe_dll->exports, which is
66 sorted alphabetically, instead of exported_symbols, which is
67 sorted by ordinal.
68
36af4a4e
JJ
692003-05-30 Ulrich Drepper <drepper@redhat.com>
70 Jakub Jelinek <jakub@redhat.com>
71
72 * lexsup.c (OPTION_PIE): Define.
73 (ld_options): Add -pie and --pic-executable options.
74 (parse_args): Handle OPTION_PIE.
75 * ldmain.c (main): Initialize link_info.pie and
76 link_info.executable.
77 * genscripts.sh: Generate PIE scripts.
78 * ld.texinfo: Document -pie and --pic-executable options.
79 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
80 (gld${EMULATION_NAME}_place_orphan): Likewise.
81 (gld${EMULATION_NAME}_get_script): Include PIE scripts.
82 * scripttempl/elf.sc: In PIE scripts set . the same way as in
83 shared scripts.
84 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
85 * emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
86 * emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
87 * emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
88 * emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
89 * emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
90 * emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
91 * emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
92 * emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
93 * emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
94 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
95
cdaeef2e
L
962003-05-30 H.J. Lu <hongjiu.lu@intel.com>
97
98 * genscripts.sh: Create tmpdir/libpath.exp.
99
06aa7234
NC
1002003-05-30 Nick Clifton <nickc@redhat.com>
101
102 * emultempl/armelf.em (arm_elf_before_allocation): Replace ASSERT
103 with a test for a NULL bfd_for_interworking.
104
561c27b2
JT
1052003-05-29 Jason Thorpe <thorpej@wasabisystems.com>
106
107 * configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
108 correctly for more recent versions of NetBSD.
109 (alpha*-*-netbsd*): Remove.
110 (i[3-7]86-*-netbsd*): Remove.
111
29e1a6e4
NC
1122003-05-29 Nick Clifton <nickc@redhat.com>
113
114 * emultempl/pe.em: Include "safe-ctype.h" instead of <ctype.h>.
115
90be1c5c
MR
1162003-05-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
117
118 * emulparams/elf64btsmip.sh: Set TEXT_START_ADDR to 0x120000000 to
119 trap on pointer crops.
120
cea3d58d
NC
1212003-05-21 Marcus Comstedt <marcus@mc.pp.se>
122
123 * configure.tgt: Check for a target triplet of shl-...-netbsdelf
124 as well as shle-...-netbsdelf.
125
80c7c40a
NC
1262003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
127
128 * configure.host: Accept i[3-7]86 variants.
129 * configure.tgt: Likewise.
130
a6c0916f
L
1312003-05-15 H.J. Lu <hongjiu.lu@intel.com>
132
133 * emulparams/elf64_ia64.sh: Don't set COMMONPAGESIZE for now.
134
d2012d17
DJ
1352003-05-09 Daniel Jacobowitz <drow@mvista.com>
136
137 * Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o.
138 (earmelfb.c, earmelfb_linux.c): New rules.
139 * Makefile.in: Regenerated.
140 * emulparams/armelfb.sh, emulparams/armelfb_linux.sh: New files.
df9a14a1 141 * configure.tgt: Add armeb-elf and arm*b-*-linux-gnu.
d2012d17 142
3cd9fdd5 1432003-05-09 Nick Clifton <nickc@redhat.com>
c16d554d 144
66184979
NC
145 * ldlang.c (lang_size_sections_1): Default to generating a
146 fatal error message if a loadable section is not allocated
147 to a memory region when regions are defined.
148
efdffbe2
AM
1492003-05-09 Alan Modra <amodra@bigpond.net.au>
150
151 * Makefile.am (em68hc11elf.c): Correct dependencies.
152 (em68hc11elfb.c, em68hc12elf.c, em68hc12elfb.c): Likewise.
153 * Makefile.in: Regenerate.
154 * emultempl/elf32.em (find_exp_assignment): Adjust for changed
155 bfd_elf_record_link_assignment name.
156
8aae64e6
AO
1572003-05-07 Alexandre Oliva <aoliva@redhat.com>
158
159 * ldmain.h (overflow_cutoff_limit): Declare.
160 * ldmain.c (overflow_cutoff_limit): Define, initialized to 10.
161 (reloc_overflow): Limit error messages based on it.
162 * lexsup.c (parse_args) <OPTION_VERBOSE>: Set cutoff to
163 unlimited.
164
5c7966bf
AM
1652003-05-05 Alan Modra <amodra@bigpond.net.au>
166
167 * ldlex.l: Accept C style comments in version scripts.
168
c7996ad6
L
1692003-04-28 H.J. Lu <hjl@gnu.org>
170
171 * ldlang.c (lang_process): Add the relax finalize pass.
172
173 * ldmain.c (main): Initialize link_info.relax_finalizing to
174 FALSE.
175
d145330d
RM
1762003-04-24 Roland McGrath <roland@redhat.com>
177
178 * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
179 If a name string is unknown, give an error rather than crashing later.
180
1812003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
182
183 * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
8d9cd6b1
NC
184 eh8300hnelf.o, eh8300snelf.o and respective rules.
185 * Makefile.in: Regenerate.
186 * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
187 * emulparams/h8300hn.sh: New
188 * emulparams/h8300sn.sh: New
d145330d 189 * emulparams/h8300hnelf.sh: New
8d9cd6b1
NC
190 * emulparams/h8300snelf.sh: New
191 * scripttempl/h8300hn.sc: new
192 * scripttempl/h8300sn.sc: new
193
0f0569c4
L
1942003-04-23 H.J. Lu <hjl@gnu.org>
195
196 * ldmain.c (link_callbacks): Initialize error_handler.
197
198 * ldmisc.c (error_handler): New function.
199
200 * ldmisc.h (error_handler): New prototype.
201
e2cebd4b
SC
2022003-04-21 Stephane Carrez <stcarrez@nerim.fr>
203
204 * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
205 * emulparams/m68hc11elfb.sh: Likewise.
206 * emulparams/m68hc12elf.sh: Likewise.
207 * emulparams/m68hc12elfb.sh: Likewise.
208
67bb9940
SC
2092003-04-19 Stephane Carrez <stcarrez@nerim.fr>
210
211 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
212 68HC11 and 68HC12.
213 (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
214 generate.
215 (LDEMUL_FINISH): Override to generate the trampolines after gc and
216 linker relaxation.
217 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
218 stub file for trampolines.
219 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
220 --no-trampoline and --bank-window to control the memory bank window.
221
97b51f20
L
2222003-04-18 H.J. Lu <hjl@gnu.org>
223
224 * ldfile.c (ldfile_add_library_path): Remove the unused
225 variable.
226
517ed485
NC
2272003-04-18 Andrew Haley <aph@cambridge.redhat.com>
228
229 * scripttempl/xstormy16.sc (__data, __rdata): New.
230
39f1ebed
NC
2312003-04-16 Nick Clifton <nickc@redhat.com>
232
233 * scripttempl/xstormy16.sc: Add .jcr section mapping.
234
731e28d8
L
2352003-04-15 H.J. Lu <hjl@gnu.org>
236
237 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
238
239 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
240
c2dcd04e
NC
2412003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
242
243 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
244 * ld.texinfo: Likewise.
245
877d60f7
AM
2462003-04-14 Alan Modra <amodra@bigpond.net.au>
247
248 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
249 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
250 other variants of crtbegin.o, crtend.o.
251 (DTOR): Likewise.
252 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
253 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
254 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
255 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
256 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
257 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
258 * scripttempl/mmo.sc (ctors, dtors): Likewise.
259 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
260
d4b6ee67
NC
2612003-04-09 Dmitry Diky <diwil@mail.ru>
262
263 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
264 sections to respect C++ constructor/destructor. Add ctors/dtors
265 start/stop definitions.
266 * scripttempl/elf32msp430_3.sc: Likewise.
267
bb10df36
NC
2682003-04-06 Nick Clifton <nickc@redhat.com>
269
270 * ld.texinfo (Options): Add a reminder of the target specific
271 nature to the description of the i386 PE specific options, for
272 readers who have not read all the way through the manual.
273
be33c5dd
SS
2742003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
275
9f863369 276 * configure.tgt: Fixed bug in list of targ_extra_emuls.
be33c5dd
SS
277 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
278 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
279 * emulparams/tic3xcoff_onchip.sh: Ditto
280 * emulparams/tic4xcoff.sh: Ditto
281 * scripttempl/tic4xcoff.sc: Ditto
282
e8fd7476
NC
2832003-04-03 Nick Clifton <nickc@redhat.com>
284
285 * NEWS: Mention support for Xtensa architecture.
286
2b817be1
NC
2872003-04-02 Nick Clifton <nickc@redhat.com>
288
289 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
290
2912003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
292
293 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
294 Don't call pe_dll_build_section() if link_info.relocateable.
295 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
296 if link_info.relocateable.
297
2982003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
299
300 * pe-dll.c (process_def_file): Don't create an export
301 section if there are no exports and we're building an exe
302 (pe_dll_build_sections): Ditto
303 (pe_dll_fill_sections): Conditionalize setting
304 abfd->dll true on info->shared
305 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
306 If i386pe or armpe, call pe_dll_build_section()
307 for both exe's and dll's, not just dll's.
308 (gld_${EMULATION_NAME}_finish): For all targets except
309 shpe and mipspe, call pe_dll_fill_sections() for both
310 exe's and dll's, not just dll's.
311
f6c8b716
BW
3122003-04-02 Bob Wilson <bob.wilson@acm.org>
313
314 * emulparams/xtensa-config.sh: Remove comment indicating that this is
315 a generated file.
316
e0001a05
NC
3172003-04-01 Bob Wilson <bob.wilson@acm.org>
318
877d60f7
AM
319 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
320 (eelf32xtensa.c): New target.
321 * Makefile.in: Regenerate.
322 * configure.tgt: Handle xtensa-*-*.
323 * gen-doc.texi: Set XTENSA variable.
324 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
325 * emulparams/elf32xtensa.sh: New file.
326 * emulparams/xtensa-config.sh: Likewise.
327 * emultempl/xtensaelf.em: Likewise.
328 * scripttempl/elfxtensa.sc: Likewise.
e0001a05 329
276e5094
JJ
3302003-04-01 Jakub Jelinek <jakub@redhat.com>
331
332 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
333 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
334 if --enable-64-bit-bfd.
335
5a6c6817
NC
3362003-04-01 Nick Clifton <nickc@redhat.com>
337
394ce546 338 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
5a6c6817 339 note section.
394ce546 340 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
5a6c6817
NC
341 name of note section.
342
a6e02871
AO
3432003-03-31 Alexandre Oliva <aoliva@redhat.com>
344
345 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
346 --section-start.
347
5ed6aba4
NC
3482003-03-31 David Heine <dlheine@suif.stanford.edu>
349
350 * ldfile.c (ldfile_add_library_path): Always allocate space for
351 the filename.
352 * ldlang.c (lang_register_vers_node): Free the node if it cannot
353 be used.
354 * ldmain.c (set_scripts_dir): Always free the constructed
355 directory name.
356 (add_keepsyms_file): Fix memory leak.
357 * ldmisc.c (vfinfo): Likewise.
877d60f7 358 * lexsup.c (parse_args): Likewise.
5ed6aba4 359
e16bb312
NC
3602003-03-25 Stan Cox <scox@redhat.com>
361 Nick Clifton <nickc@redhat.com>
877d60f7 362
e16bb312
NC
363 Contribute support for Intel's iWMMXt chip - an ARM variant:
364
365 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
366 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
367 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
368 (.bss): Likewise.
369
3fe38064
NC
3702003-03-25 Alexandre Oliva <aoliva@redhat.com>
371
372 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
373 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
374 (main): Initialize them.
375 * ldfile.c: Include pathnames.h.
376 (is_sysrooted_pathname): New.
377 (ldfile_add_library_path): Use it.
378 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
379 search_dirs if given an absolute pathname.
380 (ldfile_open_file): Issue error message for sysrooted
381 absolute pathnames.
382 * Makefile.am: Updated dependencies.
383 * Makefile.in: Rebuild.
384