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