Replace entry->the_bfd with ibfd
[external/binutils.git] / ld / ChangeLog
1 2015-02-07  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
4         ibfd.
5
6 2015-02-07  H.J. Lu  <hongjiu.lu@intel.com>
7
8         * plugin.c: Include "libbfd.h".
9         (plugin_strdup): New.
10         (plugin_maybe_claim): Remove the argument of pointer to struct
11         ld_plugin_input_file.  Open and handle input entry.
12         * plugin.h (plugin_maybe_claim): Updated.
13         * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
14         without passing a pointer to struct ld_plugin_input_file.
15         * ldmain.c: Don't include "libbfd.h".
16         (add_archive_element): Call plugin_maybe_claim directly without
17         passing a pointer to struct ld_plugin_input_file.
18
19 2015-02-06  H.J. Lu  <hongjiu.lu@intel.com>
20
21         * ld.texinfo: Document -z text, -z notext and -z textoff.
22         * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
23         -z text, -z notext and -z textoff.
24
25 2015-02-06  H.J. Lu  <hongjiu.lu@intel.com>
26
27         * configure.ac: Add AC_FUNC_MMAP.
28         * config.in: Regenerated.
29         * configure: Likewise.
30         * plugin.c: Include <sys/mman.h>.
31         (MAP_FAILED): New.  Defined if not defined.
32         (PROT_READ): Likewise.
33         (MAP_PRIVATE): Likewise.
34         (view_buffer_t): New.
35         (plugin_input_file_t): Add view_buffer.
36         (get_view): Try mmap and cache the view buffer.
37         (plugin_maybe_claim): Initialize view_buffer.
38
39 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
40
41         * plugin.c (release_input_file): Set fd to -1 after closing it.
42         (plugin_maybe_claim): Close fd only if fd != -1.
43
44 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
45
46         PR ld/17878
47         * plugin.c: Include <errno.h>.
48         (errno): New.  Declare if needed.
49         (plugin_input_file_t): New.
50         (get_input_file): Implemented.
51         (get_view): Likewise.
52         (release_input_file): Likewise.
53         (add_symbols): Updated.
54         (get_symbols): Likewise.
55         (plugin_maybe_claim): Allocate a plugin_input_file_t.  Close fd
56         only for a bfd_object input.
57
58 2015-02-02  Alan Modra  <amodra@gmail.com>
59
60         * emultempl/ppc64elf.em (toc_section_name): New var.
61         (ppc_after_open): Set it.
62         (ppc_before_allocation): Use it.
63         (gld${EMULATION_NAME}_after_allocation): Here too.
64
65 2015-01-29  H.J. Lu  <hongjiu.lu@intel.com>
66
67         * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
68         with link_info.lto_plugin_active.
69         * ldlang.c (lang_process): Likewise.
70         * ldmain.c (add_archive_element): Likewise.
71         * plugin.c (plugin_active_plugins_p): Removed.
72         * plugin.h (plugin_active_plugins_p): Likewise.
73
74 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
75
76         * plugin.h (plugin_get_ir_dummy_bfd): Removed.  Move comments to
77         ...
78         * plugin.c (plugin_get_ir_dummy_bfd): Here.  Make it static.
79
80 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
81
82         PR ld/17878
83         * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
84         (get_view): New function.
85         (set_tv_header): Handle LDPT_GET_VIEW.
86         * testplug.c (tag_names): Add LDPT_GET_VIEW.
87         (tv_get_view): New.
88         (dump_tv_tag): Handle LDPT_GET_VIEW.
89         (parse_tv_tag): Likewise.
90
91 2015-01-28  Alan Modra  <amodra@gmail.com>
92
93         * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
94         * emultempl/ppc64elf.em (params): Init new field.
95         (ppc_after_open): New function.
96         (LDEMUL_AFTER_OPEN): Define.
97         * ldlang.c (lang_final): Whitespace fix.
98
99 2015-01-28  James Bowman  <james.bowman@ftdichip.com>
100
101         * Makefile.am: Add FT32 files.
102         * configure.tgt: Handle FT32 target.
103         * emulparams/elf32ft32.sh: New file.
104         * scripttempl/ft32.sc: New file.
105         * Makefile.in: Regenerate.
106
107 2015-01-28  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
108
109         PR 4643
110         * ldexp.c (fold_name): Fold LENGTH only after
111         lang_first_phase_enum.
112         * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
113         rightaway.
114         * ldlang.h (struct memory_region_struct): Add origin_exp and
115         length_exp fields.
116         * ldlang.c (lang_do_memory_regions): New.
117         (lang_memory_region_lookup): Initialize origin_exp and
118         length_exp fields.
119         (lang_process): Call lang_do_memory_regions.
120
121 2015-01-20  Andrew Burgess  <andrew.burgess@embecosm.com>
122
123         * ldlang.c (print_assignment): Only evaluate the expression for a
124         PROVIDE'd assignment when the destination is being defined.
125         Display a special message for PROVIDE'd symbols that are not being
126         provided.
127
128 2015-01-20  Alan Modra  <amodra@gmail.com>
129
130         * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
131         (OTHER_BSS_SYMBOLS): ..this.
132         (OTHER_PLT_RELOC_SECTIONS): Don't define.
133         (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
134         (OTHER_READWRITE_SECTIONS): Don't define.  Move .toc1 to..
135         (OTHER_RELRO_SECTIONS_2): ..here.
136         * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
137
138 2015-01-20  Alan Modra  <amodra@gmail.com>
139
140         * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
141         (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
142         (OTHER_RELRO_SECTIONS_2): ..here.
143         (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
144         PLT_BEFORE_GOT): Define.
145         * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
146         PLT_BEFORE_GOT combination.
147         (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
148
149 2015-01-20  Alan Modra  <amodra@gmail.com>
150
151         * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
152         (OTHER_RELRO_SECTIONS_2): ..here, new define.
153         * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
154
155 2015-01-19  Alan Modra  <amodra@gmail.com>
156
157         PR ld/17615
158         * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
159
160 2015-01-14  Jiong Wang  <jiong.wang@arm.com>
161
162         * ld-arm/elf32-reject.s: New testcase.
163         * ld-arm/elf32-reject.d: Likewise.
164         * ld-arm/elf32-reject-pie.s: Likewise.
165         * ld-arm/elf32-reject-pie.d: Likewise.
166         * ld-arm/arm-elf.exp: Run new testcases.
167         * ld-arm/ifunc-7.s: Delete f2/f4 test items.
168         * ld-arm/ifunc-7.rd: Likewise.
169         * ld-arm/ifunc-7.gd: Likewise.
170         * ld-arm/ifunc-7.dd: Likewise.
171         * ld-arm/ifunc-8.s: Likewise.
172         * ld-arm/ifunc-8.rd: Likewise.
173         * ld-arm/ifunc-8.gd: Likewise.
174         * ld-arm/ifunc-8.dd: Likewise.
175
176 2015-01-01  Alan Modra  <amodra@gmail.com>
177
178         * ldver.c (ldversion): Just print current year.
179
180 2015-01-01  Alan Modra  <amodra@gmail.com>
181
182         Update year range in copyright notice of all files.
183
184 For older changes see ChangeLog-2014
185 \f
186 Copyright (C) 2015 Free Software Foundation, Inc.
187
188 Copying and distribution of this file, with or without modification,
189 are permitted in any medium without royalty provided the copyright
190 notice and this notice are preserved.
191
192 Local Variables:
193 mode: change-log
194 left-margin: 8
195 fill-column: 74
196 version-control: never
197 End: