Consolidate ppc64 ld/bfd communication
[platform/upstream/binutils.git] / ld / ChangeLog
1 2014-02-17  Alan Modra  <amodra@gmail.com>
2
3         * emultemps/ppc64elf.em (params): New static struct replacing
4         various other static vars.  Adjust code throughout file.
5
6 2014-02-17  Alan Modra  <amodra@gmail.com>
7
8         * emultempl/ppc32elf.em (ppc_after_open_output): Really enable
9         ppc476 workaround for ld -r.
10
11 2014-02-12  Alan Modra  <amodra@gmail.com>
12
13         * emultempl/ppc32elf.em (pagesize): New static var.
14         (ppc_after_open_output): Set params.pagesize_p2 from pagesize.
15         (PARSE_AND_LIST_ARGS_CASES): Adjust to use pagesize.
16
17 2014-02-11  Andrew Pinski  <apinski@cavium.com>
18
19         * emulparams/aarch64linux32.sh (LIBPATH_SUFFIX): Change to ilp32.
20         (ELF_INTERPRETER_NAME): Define.
21         * emulparams/aarch64linux32b.sh (ELF_INTERPRETER_NAME): Define.
22
23 2014-02-10  Alan Modra  <amodra@gmail.com>
24
25         * po/ld.pot: Regenerate.
26
27 2014-02-03  Alan Modra  <amodra@gmail.com>
28
29         * emultempl/ppc32elf.em (no_tls_get_addr_opt, emit_stub_syms)
30         plt_style): Delete.  Adjust all refs to instead use..
31         (params): ..this.  New variable.
32         (ppc_after_open_output): New function.  Tweak params and pass to
33         ppc_elf_link_params.
34         (ppc_after_open): Adjust ppc_elf_select_plt_layout call.
35         (ppc_before_allocation): Adjust ppc_elf_tls_setup call.  Enable
36         relaxation for ppc476 workaround.
37         (PARSE_AND_LIST_*): Add --{no-,}ppc476-workaround support.
38         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
39
40 2014-02-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
41
42         * ld/ld.texinfo: Change ALIGN_WITH_INPUT documentation.
43         * ld/ldlang.c (lang_size_sections_1): Add dotdelta
44         variable which reflects the VMA change due to alignment
45         requirements.  Use dotdelta do change the LMA if
46         ALIGN_WITH_INPUT is requested.
47
48 2014-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
49
50         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Fix typo in
51         call to bfd_set_section_vma exposed by recent bfd_set_section_vma
52         change.
53
54 2014-01-30  Sandra Loosemore  <sandra@codesourcery.com>
55
56         * Makefile.am (enios2elf.c, enios2linux.c): Update dependencies.
57         * Makefile.in: Regenerated.
58         * emulparams/nios2elf.sh (EXTRA_EM_FILE): Set.
59         * emulparams/nios2linux.sh (EXTRA_EM_FILE): Set.
60         * emultempl/nios2elf.em: New file.
61         * gen-doc.texi (NIOSII): Set.
62         * ld.texinfo (NIOSII): Set.
63
64 2014-01-28  Nick Clifton  <nickc@redhat.com>
65
66         * Makefile.am: Remove obsolete MSP430 emulations.
67         * configure.tgt: Likewise.
68         * emulparams/msp430all.sh: Likewise.
69         * Makefile.in: Regenerate.
70
71 2014-01-24  H.J. Lu  <hongjiu.lu@intel.com>
72
73         PR ld/16498
74         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Improve
75         orphaned TLS section handling.
76
77 2014-01-24  Alan Modra  <amodra@gmail.com>
78
79         * ldlang.c (lang_output_section_find_by_flags): Be careful to
80         test look->bfd_section->flags if available rather than
81         look->flags.  Separate SEC_THREAD_LOCAL handling from
82         SEC_READONLY loop, and rewrite.
83
84 2014-01-22  Alan Modra  <amodra@gmail.com>
85
86         * ldlang.c (asneeded_list_head, asneeded_list_tail): New vars.
87         (lang_init): Initialise them.
88         (lang_print_asneeded): New function.
89         (lang_process): Call lang_print_asneeded.
90         * ldlang.h (struct asneeded_minfo): New.
91         (asneeded_list_tail): Declare.
92         * ldmain.c (add_archive_element): Improve archive map heading.
93         * ldmisc.c (minfo): Stash --as-needed info.
94
95 2014-01-22  Alan Modra  <amodra@gmail.com>
96
97         * ld.h (struct map_symbol_def): Move to..
98         * ldlang.h: ..here.
99         * ldlang.c (print_assignment): Don't set expld.assign_name to dot.
100
101 2014-01-22  Alan Modra  <amodra@gmail.com>
102
103         * ld.texinfo (Output Section Discarding): Mention assigning to dot
104         as a way of keeping otherwise empty sections.
105         * ldexp.c (is_dot, is_value, is_sym_value, is_dot_ne_0,
106         is_dot_plus_0, is_align_conditional): New predicates.
107         (exp_fold_tree_1): Set SEC_KEEP when assigning to dot inside an
108         output section, except for some special cases.
109         * scripttempl/elfmicroblaze.sc: Use canonical form to align at
110         end of .heap and .stack.
111
112 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
113
114         * emulparams/aarch64linuxb.sh (ELF_INTERPRETER_NAME): Define.
115
116 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
117
118         * emulparams/aarch64linux.sh (ELF_INTERPRETER_NAME): Define.
119
120 2014-01-20  Alan Modra  <amodra@gmail.com>
121
122         * ldlang.h (struct lang_definedness_hash_entry): Add by_object and
123         by_script.  Make iteration a single bit field.
124         (lang_track_definedness, lang_symbol_definition_iteration): Delete.
125         (lang_symbol_defined): Declare.
126         * ldlang.c (lang_statement_iteration): Expand comment a little.
127         (lang_init <lang_definedness_table>): Make it bigger.
128         (lang_track_definedness, lang_symbol_definition): Delete.
129         (lang_definedness_newfunc): Update.
130         (lang_symbol_defined): New function.
131         (lang_update_definedness): Create entries here.  Do track whether
132         script definition of symbol is valid, even when also defined in
133         an object file.
134         * ldexp.c (fold_name <DEFINED>): Update.
135         (fold_name <NAME>): Allow self-assignment for absolute symbols
136         defined in a linker script.
137
138 2014-01-20  Guy Martin <gmsoft@tuxicoman.be>
139             Alan Modra  <amodra@gmail.com>
140
141         * ldlang.h (lang_output_section_get): Define.
142         * ldlang.c (lang_output_section_get): Likewise.
143         (init_os): Set the output_section userdata to the output
144         section statement.
145         * emultempl/hppaelf.em: Use lang_output_section_get instead of
146         lang_output_section_find where applicable.
147         * emultempl/aarch64elf.em: Likewise.
148         * emultempl/aix.em: Likewise.
149         * emultempl/armelf.em: Likewise.
150         * emultempl/m68hc1xelf.em: Likewise.
151         * emultempl/metagelf.em: Likewise.
152         * emultempl/mipself.em: Likewise.
153         * emultempl/ppc64elf.em: Likewise.
154         * emultempl/spuelf.em: Likewise.
155
156 2014-01-17  Alan Modra  <amodra@gmail.com>
157
158         * genscripts.sh (COMPILE_IN): Don't set if already set.
159         * emulparams/nds32elf.sh: Don't clear EMULATION_LIBPATH, set
160         COMPILE_IN=no.
161         * emulparams/nds32elf16m.sh: Likewise.
162         * emulparams/nds32elf_linux.sh: Likewise.
163         * emultempl/aix.em: Test COMPILE_IN value is "yes".
164         * emultempl/armcoff.em: Likewise.
165         * emultempl/elf32.em: Likewise.
166         * emultempl/generic.em: Likewise.
167         * emultempl/gld960.em: Likewise.
168         * emultempl/gld960c.em: Likewise.
169         * emultempl/linux.em: Likewise.
170         * emultempl/lnk960.em: Likewise.
171         * emultempl/m68kcoff.em: Likewise.
172         * emultempl/sunos.em: Likewise.
173         * emultempl/ticoff.em: Likewise.
174
175 2014-01-16  H.J. Lu  <hongjiu.lu@intel.com>
176
177         PR ld/16456
178         * genscripts.sh: Don't search directory with LIBPATH_SUFFIX_SKIP
179         suffix.
180         * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX_SKIP): Set to 64
181         for elf32_x86_64 emulation.
182         * emulparams/elf_i386.sh (LIBPATH_SUFFIX_SKIP): Set to 64
183         for elf_i386 emulation.
184
185 2014-01-16  Alan Modra  <amodra@gmail.com>
186
187         * ld.h (fat_section_userdata_type, get_userdata): Move to..
188         * ldlang.h (input_section_userdata_type, get_userdata): ..here.
189         * ldlang.c (init_map_userdata): Delete.  Fold into..
190         (sort_def_symbol): ..here.  Don't attach input section userdata
191         to output sections or global bfd sections.
192         (lang_map): Don't pre-allocate input section userdata.
193         (init_os): Don't allocate userdata for output sections.
194         (print_all_symbols): Update.
195
196 2014-01-15  H.J. Lu  <hongjiu.lu@intel.com>
197
198         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
199         Silence uninitialized warning on ehdr_start_save with older
200         GCC.
201
202 2014-01-15  Alan Modra  <amodra@gmail.com>
203
204         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define
205         __ehdr_start before size_dynamic_sections and restore afterwards.
206
207 2014-01-10  Alan Modra  <amodra@gmail.com>
208
209         PR ld/14207
210         PR ld/16322
211         PR binutils/16323
212         * ldlang.c (lang_size_sections): Remove unneeded RELRO base
213         adjust.  Tidy comments.
214         * ld.texinfo (DATA_SEGMENT_RELRO_END): Correct description.
215
216 2014-01-10  Hans-Peter Nilsson  <hp@axis.com>
217
218         * emulparams/crislinux.sh (COMMONPAGESIZE): Define.
219
220 2014-01-08  H.J. Lu  <hongjiu.lu@intel.com>
221
222         PR ld/14207
223         PR ld/16322
224         PR binutils/16323
225         * ldlang.c (lang_size_sections): Properly align RELRO base.
226
227 2014-01-08  H.J. Lu  <hongjiu.lu@intel.com>
228
229         * ldver.c (ldversion): Update copyright year to 2014.
230
231 For older changes see ChangeLog-2013
232 \f
233 Copyright (C) 2014 Free Software Foundation, Inc.
234
235 Copying and distribution of this file, with or without modification,
236 are permitted in any medium without royalty provided the copyright
237 notice and this notice are preserved.
238
239 Local Variables:
240 mode: change-log
241 left-margin: 8
242 fill-column: 74
243 version-control: never
244 End: