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