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