bfd/
[platform/upstream/binutils.git] / ld / ChangeLog
1 2008-03-20  Alan Modra  <amodra@bigpond.net.au>
2
3         * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
4
5 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6
7         * aclocal.m4: Regenerate.
8         * configure: Likewise.
9         * Makefile.in: Likewise.
10
11 2008-03-14  Alan Modra  <amodra@bigpond.net.au>
12
13         * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
14         spu_elf_build_stubs with is_spu_target.
15
16 2008-03-13  Alan Modra  <amodra@bigpond.net.au>
17
18         * Makefile.am: Run "make dep-am".
19         * Makefile.in: Regenerate.
20         * configure: Regenerate.
21
22 2008-03-06  Joseph Myers  <joseph@codesourcery.com>
23             Roman Zippel  <zippel@linux-m68k.org>
24
25         * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
26         (COMMONPAGESIZE): Define.
27
28 2008-02-22  Nick Clifton  <nickc@redhat.com>
29
30         PR ld/5785
31         * ldlang.c (lang_size_sections_1): Honour the setting of an
32         lma_region even if there is no vma region set, or the vma region
33         is the same as the lma region.
34
35 2008-02-18  Nick Clifton  <nickc@redhat.com>
36
37         * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
38         relocatable link.
39         * scripttempl/elf32cr16.sc: Likewise.
40         * scripttempl/elf32cr16c.sc: Likewise.
41         * scripttempl/elf32crx.sc: Likewise.
42         * scripttempl/elf32sh-symbian.sc: Likewise.
43         * scripttempl/elf_chaos.sc: Likewise.
44         * scripttempl/elfd10v.sc: Likewise.
45         * scripttempl/elfi370.sc: Likewise.
46         * scripttempl/elfm68hc11.sc: Likewise.
47         * scripttempl/elfm68hc12.sc: Likewise.
48         * scripttempl/ip2k.sc: Likewise.
49         * scripttempl/iq2000.sc: Likewise.
50         * scripttempl/mep.sc: Likewise.
51         * scripttempl/v850.sc: Likewise.
52         * scripttempl/xstormy16.sc: Likewise.
53
54 2008-02-16  Alan Modra  <amodra@bigpond.net.au>
55
56         PR ld/5761
57         * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
58         load_base before calling make_abs.
59
60 2008-02-15  Alan Modra  <amodra@bigpond.net.au>
61
62         * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
63         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
64         Likewise.
65         * emultempl/ppc64elf.em (ppc_create_output_section_statements):
66         Likewise.
67         * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete.  Replace all
68         uses with..
69         (is_ppc_elf): ..this new macro.
70
71 2008-02-15  Alan Modra  <amodra@bigpond.net.au>
72
73         * ldmain.h (output_bfd): Delete.
74         * ldmain.c (output_bfd): Delete.
75         Replace all occurrences of output_bfd with link_info.output_bfd.
76         * ldcref.c: Likewise.
77         * ldctor.c: Likewise.
78         * ldemul.c: Likewise.
79         * ldexp.c: Likewise.
80         * ldfile.c: Likewise.
81         * ldlang.c: Likewise.
82         * ldmisc.c: Likewise.
83         * ldwrite.c: Likewise.
84         * pe-dll.c: Likewise.
85         * emultempl/aix.em: Likewise.
86         * emultempl/alphaelf.em: Likewise.
87         * emultempl/armcoff.em: Likewise.
88         * emultempl/armelf.em: Likewise.
89         * emultempl/avrelf.em: Likewise.
90         * emultempl/beos.em: Likewise.
91         * emultempl/elf-generic.em: Likewise.
92         * emultempl/elf32.em: Likewise.
93         * emultempl/gld960.em: Likewise.
94         * emultempl/hppaelf.em: Likewise.
95         * emultempl/irix.em: Likewise.
96         * emultempl/linux.em: Likewise.
97         * emultempl/lnk960.em: Likewise.
98         * emultempl/m68hc1xelf.em: Likewise.
99         * emultempl/mmix-elfnmmo.em: Likewise.
100         * emultempl/mmo.em: Likewise.
101         * emultempl/pe.em: Likewise.
102         * emultempl/pep.em: Likewise.
103         * emultempl/ppc32elf.em: Likewise.
104         * emultempl/ppc64elf.em: Likewise.
105         * emultempl/scoreelf.em: Likewise.
106         * emultempl/sh64elf.em: Likewise.
107         * emultempl/spuelf.em: Likewise.
108         * emultempl/sunos.em: Likewise.
109         * emultempl/vanilla.em: Likewise.
110         * emultempl/vxworks.em: Likewise.
111         * emultempl/xtensaelf.em: Likewise.
112         * emultempl/z80.em: Likewise.
113         * ldlang.c (open_output): Don't return output, instead write
114         link_info_output_bfd directly.
115         * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
116         with link_info.output_bfd->xvec.
117         * emultempl/hppaelf.em: Likewise.
118         * emultempl/ppc32elf.em: Likewise.
119         * emultempl/ppc64elf.em: Likewise.
120         * emultempl/spuelf.em: Likewise.
121
122 2008-02-07  Alan Modra  <amodra@bigpond.net.au>
123
124         * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
125         * ldfile.c (ldfile_add_library_path): Likewise.
126         * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
127         * emultempl/lnk960.em (lnk960_before_parse): Likewise.
128         * emultempl/spuelf.em (embedded_spu_file): Likewise.
129
130 2008-02-07  Alan Modra  <amodra@bigpond.net.au>
131
132         * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
133         a "present" bit rather than low bit of .buf.  Correct indexing
134         into _ovly_buf_table.  Use relative loads and stores to access
135         overlay manager local vars.
136         * emultempl/spu_ovl.o: Regenerate.
137
138 2008-02-04  H.J. Lu  <hongjiu.lu@intel.com>
139
140         PR 5715
141         * configure: Regenerated.
142
143 2008-01-31  Marc Gauthier  <marc@tensilica.com>
144
145         * configure.tgt (xtensa*-*-*): Recognize processor variants.
146
147 2008-01-28  Fabian Groffen  <grobian@gentoo.org>
148
149         * configure.tgt (x86_64-*-solaris2): Add support for this target.
150
151 2008-01-28  Vincent Riviere  <vincent.riviere@freesbee.fr>
152
153         PR ld/5652
154         * genscripts.sh: Check for the existence of BASH_LINENO not just
155         the BASH shell before generating line numbers in the emulation
156         file.
157
158 2008-01-28  Alan Modra  <amodra@bigpond.net.au>
159
160         * emultempl/spu_ovl.S: Rewrite.
161         * emultempl/spu_ovl.o: Regenerate.
162         * emultempl/spuelf.em (toe): Delete.
163         (spu_place_special_section): Add param to control section placement.
164         Adjust callers.
165         (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
166         changes.
167         (spu_before_allocation): Adjust spu_elf_size_stubs call.
168         (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
169
170 2008-01-25  H.J. Lu  <hongjiu.lu@intel.com>
171
172         PR ld/5670
173         * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
174         warning.
175
176 2008-01-25  Alan Modra  <amodra@bigpond.net.au>
177
178         * ld.texinfo (INSERT): Describe.
179         * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
180         (INSERT_K, AFTER, BEFORE): Add as tokens.
181         (ifile_p1): Handle INSERT statements.
182         (saved_script_handle, force_make_executable): Move to..
183         * ldmain.c: ..here.
184         (previous_script_handle): New global var.
185         * ldmain.h (saved_script_handle, force_make_executable): Declare.
186         (previous_script_handle): Likewise.
187         * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
188         * lexsup.c (parge_args <-T>): Set previous_script_handle.
189         * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
190         (map_input_to_output_sections, print_statement): Likewise.
191         (lang_size_sections_1, lang_do_assignments_1): Likewise.
192         (insert_os_after): New function, extracted from..
193         (lang_insert_orphan): ..here.
194         (process_insert_statements): New function.
195         (lang_process): Call it.
196         (lang_add_insert): New function.
197         * ldlang.h (lang_insert_statement_enum): New.
198         (lang_insert_statement_type): New.
199         (lang_statement_union_type): Add insert_statement.
200         (lang_add_insert): Declare.
201
202 2008-01-18  Bob Wilson  <bob.wilson@acm.org>
203
204         * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
205         changes from elf.sc.
206         
207 2008-01-16  Alan Modra  <amodra@bigpond.net.au>
208
209         * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
210
211 2008-01-16  Alan Modra  <amodra@bigpond.net.au>
212
213         * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
214         (lang_afile_asection_pair_statement_type): Delete.
215         (lang_statement_union_type): Delete afile_asection_pair_statement.
216         * ldlang.c (lang_insert_orphan): Delete case handling the above.
217         (map_input_to_output_sections, print_statement): Likewise.
218
219 2008-01-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
220
221         * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
222         with __data_start.
223         * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
224
225 2008-01-15  Alan Modra  <amodra@bigpond.net.au>
226
227         PR 5604
228         * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
229         syms to _bfd_elf_gc_keep.
230         * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
231         ppc64_elf_edit_opd if no_opd_opt.
232
233 2008-01-11  Tristan Gingold  <gingold@adacore.com>
234             Eric Botcazou  <ebotcazou@adacore.com>
235
236         * ldlang.c (lang_end): Warns if the entry point is not found when
237         --gc-sections.
238         Emit an error if no root is specified when --gc-sections -r.
239         * ld.texinfo (Options): Document that --gc-sections is compatible
240         with -r and -q.
241         * ldmain.c (main): Do not error out if -r and --gc-sections.
242         * scripttempl/elf.sc: Emit ENTRY command only if relocating.
243
244 2008-01-10  Daniel Jacobowitz  <drow@sources.redhat.com>
245
246         PR ld/5533
247         * ldlang.c (lang_end): Issue a warning for a missing start symbol
248         of a shared library if the symbol was specified on the command
249         line.
250
251 2008-01-10  Alan Modra  <amodra@bigpond.net.au>
252
253         * ld.texinfo (--gc-sections): Describe linker behaviour.
254
255 For older changes see ChangeLog-2007
256 \f
257 Local Variables:
258 mode: change-log
259 left-margin: 8
260 fill-column: 74
261 version-control: never
262 End: