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