bfd/
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
36af4a4e
JJ
12003-05-30 Ulrich Drepper <drepper@redhat.com>
2 Jakub Jelinek <jakub@redhat.com>
3
4 * lexsup.c (OPTION_PIE): Define.
5 (ld_options): Add -pie and --pic-executable options.
6 (parse_args): Handle OPTION_PIE.
7 * ldmain.c (main): Initialize link_info.pie and
8 link_info.executable.
9 * genscripts.sh: Generate PIE scripts.
10 * ld.texinfo: Document -pie and --pic-executable options.
11 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
12 (gld${EMULATION_NAME}_place_orphan): Likewise.
13 (gld${EMULATION_NAME}_get_script): Include PIE scripts.
14 * scripttempl/elf.sc: In PIE scripts set . the same way as in
15 shared scripts.
16 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
17 * emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
18 * emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
19 * emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
20 * emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
21 * emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
22 * emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
23 * emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
24 * emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
25 * emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
26 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
27
cdaeef2e
L
282003-05-30 H.J. Lu <hongjiu.lu@intel.com>
29
30 * genscripts.sh: Create tmpdir/libpath.exp.
31
06aa7234
NC
322003-05-30 Nick Clifton <nickc@redhat.com>
33
34 * emultempl/armelf.em (arm_elf_before_allocation): Replace ASSERT
35 with a test for a NULL bfd_for_interworking.
36
561c27b2
JT
372003-05-29 Jason Thorpe <thorpej@wasabisystems.com>
38
39 * configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
40 correctly for more recent versions of NetBSD.
41 (alpha*-*-netbsd*): Remove.
42 (i[3-7]86-*-netbsd*): Remove.
43
29e1a6e4
NC
442003-05-29 Nick Clifton <nickc@redhat.com>
45
46 * emultempl/pe.em: Include "safe-ctype.h" instead of <ctype.h>.
47
90be1c5c
MR
482003-05-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
49
50 * emulparams/elf64btsmip.sh: Set TEXT_START_ADDR to 0x120000000 to
51 trap on pointer crops.
52
cea3d58d
NC
532003-05-21 Marcus Comstedt <marcus@mc.pp.se>
54
55 * configure.tgt: Check for a target triplet of shl-...-netbsdelf
56 as well as shle-...-netbsdelf.
57
80c7c40a
NC
582003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
59
60 * configure.host: Accept i[3-7]86 variants.
61 * configure.tgt: Likewise.
62
a6c0916f
L
632003-05-15 H.J. Lu <hongjiu.lu@intel.com>
64
65 * emulparams/elf64_ia64.sh: Don't set COMMONPAGESIZE for now.
66
d2012d17
DJ
672003-05-09 Daniel Jacobowitz <drow@mvista.com>
68
69 * Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o.
70 (earmelfb.c, earmelfb_linux.c): New rules.
71 * Makefile.in: Regenerated.
72 * emulparams/armelfb.sh, emulparams/armelfb_linux.sh: New files.
df9a14a1 73 * configure.tgt: Add armeb-elf and arm*b-*-linux-gnu.
d2012d17 74
3cd9fdd5 752003-05-09 Nick Clifton <nickc@redhat.com>
66184979
NC
76
77 * ldlang.c (lang_size_sections_1): Default to generating a
78 fatal error message if a loadable section is not allocated
79 to a memory region when regions are defined.
80
efdffbe2
AM
812003-05-09 Alan Modra <amodra@bigpond.net.au>
82
83 * Makefile.am (em68hc11elf.c): Correct dependencies.
84 (em68hc11elfb.c, em68hc12elf.c, em68hc12elfb.c): Likewise.
85 * Makefile.in: Regenerate.
86 * emultempl/elf32.em (find_exp_assignment): Adjust for changed
87 bfd_elf_record_link_assignment name.
88
8aae64e6
AO
892003-05-07 Alexandre Oliva <aoliva@redhat.com>
90
91 * ldmain.h (overflow_cutoff_limit): Declare.
92 * ldmain.c (overflow_cutoff_limit): Define, initialized to 10.
93 (reloc_overflow): Limit error messages based on it.
94 * lexsup.c (parse_args) <OPTION_VERBOSE>: Set cutoff to
95 unlimited.
96
5c7966bf
AM
972003-05-05 Alan Modra <amodra@bigpond.net.au>
98
99 * ldlex.l: Accept C style comments in version scripts.
100
c7996ad6
L
1012003-04-28 H.J. Lu <hjl@gnu.org>
102
103 * ldlang.c (lang_process): Add the relax finalize pass.
104
105 * ldmain.c (main): Initialize link_info.relax_finalizing to
106 FALSE.
107
d145330d
RM
1082003-04-24 Roland McGrath <roland@redhat.com>
109
110 * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
111 If a name string is unknown, give an error rather than crashing later.
112
1132003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
114
115 * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
8d9cd6b1
NC
116 eh8300hnelf.o, eh8300snelf.o and respective rules.
117 * Makefile.in: Regenerate.
118 * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
119 * emulparams/h8300hn.sh: New
120 * emulparams/h8300sn.sh: New
d145330d 121 * emulparams/h8300hnelf.sh: New
8d9cd6b1
NC
122 * emulparams/h8300snelf.sh: New
123 * scripttempl/h8300hn.sc: new
124 * scripttempl/h8300sn.sc: new
125
0f0569c4
L
1262003-04-23 H.J. Lu <hjl@gnu.org>
127
128 * ldmain.c (link_callbacks): Initialize error_handler.
129
130 * ldmisc.c (error_handler): New function.
131
132 * ldmisc.h (error_handler): New prototype.
133
e2cebd4b
SC
1342003-04-21 Stephane Carrez <stcarrez@nerim.fr>
135
136 * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
137 * emulparams/m68hc11elfb.sh: Likewise.
138 * emulparams/m68hc12elf.sh: Likewise.
139 * emulparams/m68hc12elfb.sh: Likewise.
140
67bb9940
SC
1412003-04-19 Stephane Carrez <stcarrez@nerim.fr>
142
143 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
144 68HC11 and 68HC12.
145 (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
146 generate.
147 (LDEMUL_FINISH): Override to generate the trampolines after gc and
148 linker relaxation.
149 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
150 stub file for trampolines.
151 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
152 --no-trampoline and --bank-window to control the memory bank window.
153
97b51f20
L
1542003-04-18 H.J. Lu <hjl@gnu.org>
155
156 * ldfile.c (ldfile_add_library_path): Remove the unused
157 variable.
158
517ed485
NC
1592003-04-18 Andrew Haley <aph@cambridge.redhat.com>
160
161 * scripttempl/xstormy16.sc (__data, __rdata): New.
162
39f1ebed
NC
1632003-04-16 Nick Clifton <nickc@redhat.com>
164
165 * scripttempl/xstormy16.sc: Add .jcr section mapping.
166
731e28d8
L
1672003-04-15 H.J. Lu <hjl@gnu.org>
168
169 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
170
171 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
172
c2dcd04e
NC
1732003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
174
175 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
176 * ld.texinfo: Likewise.
177
877d60f7
AM
1782003-04-14 Alan Modra <amodra@bigpond.net.au>
179
180 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
181 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
182 other variants of crtbegin.o, crtend.o.
183 (DTOR): Likewise.
184 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
185 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
186 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
187 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
188 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
189 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
190 * scripttempl/mmo.sc (ctors, dtors): Likewise.
191 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
192
d4b6ee67
NC
1932003-04-09 Dmitry Diky <diwil@mail.ru>
194
195 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
196 sections to respect C++ constructor/destructor. Add ctors/dtors
197 start/stop definitions.
198 * scripttempl/elf32msp430_3.sc: Likewise.
199
bb10df36
NC
2002003-04-06 Nick Clifton <nickc@redhat.com>
201
202 * ld.texinfo (Options): Add a reminder of the target specific
203 nature to the description of the i386 PE specific options, for
204 readers who have not read all the way through the manual.
205
be33c5dd
SS
2062003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
207
9f863369 208 * configure.tgt: Fixed bug in list of targ_extra_emuls.
be33c5dd
SS
209 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
210 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
211 * emulparams/tic3xcoff_onchip.sh: Ditto
212 * emulparams/tic4xcoff.sh: Ditto
213 * scripttempl/tic4xcoff.sc: Ditto
214
e8fd7476
NC
2152003-04-03 Nick Clifton <nickc@redhat.com>
216
217 * NEWS: Mention support for Xtensa architecture.
218
2b817be1
NC
2192003-04-02 Nick Clifton <nickc@redhat.com>
220
221 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
222
2232003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
224
225 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
226 Don't call pe_dll_build_section() if link_info.relocateable.
227 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
228 if link_info.relocateable.
229
2302003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
231
232 * pe-dll.c (process_def_file): Don't create an export
233 section if there are no exports and we're building an exe
234 (pe_dll_build_sections): Ditto
235 (pe_dll_fill_sections): Conditionalize setting
236 abfd->dll true on info->shared
237 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
238 If i386pe or armpe, call pe_dll_build_section()
239 for both exe's and dll's, not just dll's.
240 (gld_${EMULATION_NAME}_finish): For all targets except
241 shpe and mipspe, call pe_dll_fill_sections() for both
242 exe's and dll's, not just dll's.
243
f6c8b716
BW
2442003-04-02 Bob Wilson <bob.wilson@acm.org>
245
246 * emulparams/xtensa-config.sh: Remove comment indicating that this is
247 a generated file.
248
e0001a05
NC
2492003-04-01 Bob Wilson <bob.wilson@acm.org>
250
877d60f7
AM
251 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
252 (eelf32xtensa.c): New target.
253 * Makefile.in: Regenerate.
254 * configure.tgt: Handle xtensa-*-*.
255 * gen-doc.texi: Set XTENSA variable.
256 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
257 * emulparams/elf32xtensa.sh: New file.
258 * emulparams/xtensa-config.sh: Likewise.
259 * emultempl/xtensaelf.em: Likewise.
260 * scripttempl/elfxtensa.sc: Likewise.
e0001a05 261
276e5094
JJ
2622003-04-01 Jakub Jelinek <jakub@redhat.com>
263
264 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
265 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
266 if --enable-64-bit-bfd.
267
5a6c6817
NC
2682003-04-01 Nick Clifton <nickc@redhat.com>
269
394ce546 270 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
5a6c6817 271 note section.
394ce546 272 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
5a6c6817
NC
273 name of note section.
274
a6e02871
AO
2752003-03-31 Alexandre Oliva <aoliva@redhat.com>
276
277 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
278 --section-start.
279
5ed6aba4
NC
2802003-03-31 David Heine <dlheine@suif.stanford.edu>
281
282 * ldfile.c (ldfile_add_library_path): Always allocate space for
283 the filename.
284 * ldlang.c (lang_register_vers_node): Free the node if it cannot
285 be used.
286 * ldmain.c (set_scripts_dir): Always free the constructed
287 directory name.
288 (add_keepsyms_file): Fix memory leak.
289 * ldmisc.c (vfinfo): Likewise.
877d60f7 290 * lexsup.c (parse_args): Likewise.
5ed6aba4 291
e16bb312
NC
2922003-03-25 Stan Cox <scox@redhat.com>
293 Nick Clifton <nickc@redhat.com>
877d60f7 294
e16bb312
NC
295 Contribute support for Intel's iWMMXt chip - an ARM variant:
296
297 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
298 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
299 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
300 (.bss): Likewise.
301
3fe38064
NC
3022003-03-25 Alexandre Oliva <aoliva@redhat.com>
303
304 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
305 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
306 (main): Initialize them.
307 * ldfile.c: Include pathnames.h.
308 (is_sysrooted_pathname): New.
309 (ldfile_add_library_path): Use it.
310 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
311 search_dirs if given an absolute pathname.
312 (ldfile_open_file): Issue error message for sysrooted
313 absolute pathnames.
314 * Makefile.am: Updated dependencies.
315 * Makefile.in: Rebuild.
316