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