aboutsummaryrefslogtreecommitdiffstats
path: root/trunk/ChangeLog
blob: 1cd080f0c944fdce511f40bc1300d03a536c7b6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
2009-06-15  Jakub Jelinek  <jakub@redhat.com>

	* dwarf2.h (DW_TAG_condition, DW_TAG_shared_type): Define.
	(DW_OP_form_tls_address, DW_OP_call_frame_cfa, DW_OP_bit_piece,
	DW_OP_implicit_value, DW_OP_stack_value, DW_OP_GNU_uninit,
	DW_OP_GNU_encoded_addr): Define.
	(DW_ATE_packed_decimal, DW_ATE_numeric_string, DW_ATE_edited,
	DW_ATE_signed_fixed, DW_ATE_unsigned_fixed, DW_ATE_decimal_float):
	Define.
	(DW_CFA_val_offset, DW_CFA_val_offset_sf, DW_CFA_val_expression):
	Define.
	(DW_LANG_PLI, DW_LANG_ObjC, DW_LANG_ObjC_plus_plus, DW_LANG_UPC,
	DW_LANG_D): Define.
	* dwarf2.c (debug_sections): Add .debug_pubtypes.
	(DEBUG_PUBTYPES): Define.
	(DEBUG_MACINFO, DEBUG_LOC, DEBUG_STR, DEBUG_FRAME, DEBUG_RANGES):
	Adjust.
	(struct cu_data): Add cu_version field.
	(read_abbrev): Adjust error messages not to be DWARF-2 specific.
	(adjust_location_list): Likewise.  Fix up DW_OP_call_ref handling,
	handle DW_OP_form_tls_address, DW_OP_call_frame_cfa,
	DW_OP_GNU_uninit, DW_OP_bit_piece, DW_OP_stack_value and
	DW_OP_implicit_value.
	(adjust_attributes): For cu->cu_version == 2 skip ptr_size bytes
	instead of just 4.  Adjust error messages not to be DWARF-2
	specific.
	(adjust_dwarf2_line): Handle version 3 of .debug_line.
	(adjust_dwarf2_frame): Just that CIE version is 1 or 3, for
	version 1 skip just one byte instead of uleb128 for return address
	column.  Handle DW_CFA_val_offset, DW_CFA_val_offset_sf and
	DW_CFA_val_expression.
	(adjust_dwarf2): Handle version 3 of .debug_info, initialize
	cu.cu_version.  Adjust error messages not to be DWARF-2 specific.
	Note that .debug_pubtypes doesn't need adjustments.

2009-03-11  Jakub Jelinek  <jakub@redhat.com>

	* src/prelink.h (PLArch): Add rtype_class_valid field.
	* src/get.c (prelink_record_relocations): If not /4, or
	dso->arch->rtype_class_valid instead of RTYPE_CLASS_VALID
	into reloc_class.
	* src/cxx.c (remove_redundant_cxx_conflicts): Use
	info->dso->arch->rtype_class_valid instead of RTYPE_CLASS_VALID.
	* src/arch-ppc64.c (ppc64_reloc_class): For R_PPC64_COPY return
	RTYPE_CLASS_COPY | RTYPE_CLASS_PLT, for non-TLS relocs return
	RTYPE_CLASS_PLT.
	(PL_ARCH): Set rtype_class_valid to RTYPE_CLASS_PLT.
	* src/arch-alpha.c (PL_ARCH): Set rtype_class_valid to
	RTYPE_CLASS_VALID.
	* src/arch-arm.c (PL_ARCH): Likewise.
	* src/arch-cris.c (PL_ARCH): Likewise.
	* src/arch-i386.c (PL_ARCH): Likewise.
	* src/arch-ia64.c (PL_ARCH): Likewise.
	* src/arch-mips.c (PL_ARCH): Likewise.
	* src/arch-ppc.c (PL_ARCH): Likewise.
	* src/arch-s390.c (PL_ARCH): Likewise.
	* src/arch-s390x.c (PL_ARCH): Likewise.
	* src/arch-sh.c (PL_ARCH): Likewise.
	* src/arch-sparc.c (PL_ARCH): Likewise.
	* src/arch-sparc64.c (PL_ARCH): Likewise.
	* src/arch-x86_64.c (PL_ARCH): Likewise.

2009-03-04  Joseph Myers  <joseph@codesourcery.com>

	* testsuite/reloc2.sh, testsuite/tls3.sh: Add ARM to architectures
	requiring PIC shared libraries.

2009-03-04  Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* src/arch-arm.c (arm_prelink_rel, arm_prelink_rela,
	arm_prelink_conflict_rel, arm_prelink_conflict_rela, arm_rel_to_rela,
	arm_rela_to_rel, arm_need_rel_to_rela, arm_undo_prelink_rel,
	arm_reloc_class): Handle TLS relocations.
	* src/prelink.h (R_ARM_TLS_DTPMOD32, R_ARM_TLS_DTPOFF32,
	R_ARM_TLS_TPOFF32): Define if R_ARM_TLS_DTPMOD32 not already
	defined.

2009-03-04  Daniel Jacobowitz  <dan@codesourcery.com>

	* src/arch-arm.c (arm_adjust_dyn, arm_adjust_rel, arm_adjust_rela,
	arm_prelink_rel, arm_prelink_rela, arm_apply_conflict_rela,
	arm_apply_rel, arm_apply_rela, arm_prelink_conflict_rela,
	arm_rel_to_rela, arm_rela_to_rel, arm_need_rel_to_rela,
	arm_arch_prelink, arm_arch_undo_prelink, arm_undo_prelink_rel):
	Use endian-neutral functions.

2008-09-29 Joseph Myers  <joseph@codesourcery.com>

	* src/arch-sparc64.c (sparc64_prelink_rela,
	sparc64_prelink_conflict_rela, sparc64_undo_prelink_rela,
	sparc64_reloc_class): Handle TLS relocations.
	(PL_ARCH): Update mmap_base and mmap_end for TASK_UNMAPPED_BASE
	change to 0xfffff80100000000.

2007-12-04  Daniel Jacobowitz  <dan@codesourcery.com>

	* src/gather.c (gather_object): Print an error if nftw64 fails.

2007-10-09  Jakub Jelinek  <jakub@redhat.com>

	* src/cxx.c (remove_redundant_cxx_conflicts): Allow .sdata
	section as well.

	* src/prelink.h (struct prelink_conflict): Add next2 field.
	(struct prelink_conflicts): Add hash2 field.
	* src/get.c (prelink_record_relocations): Clear next2 fields.
	* src/prelink.c (free_info): Also free hash2 table.
	* src/cxx.c (remove_redundant_cxx_conflicts): Populate hash2
	if not populated yet, use it to speed up pltref checking.

	* src/prelink.h (struct prelink_conflicts): New type.
	(struct prelink_info): Change type of conflicts and curconflicts
	fields to struct prelink_conflicts *.
	* src/get.c (conflict_hash_init): New function.
	(prelink_record_relocations): Adjust initialization of conflicts
	array.  If conflict linked lists has more than 15 entries, use
	hash table with chains.
	* src/prelink.c (free_info): Handle freeing conflict list using a hash
	table.
	* src/fptr.c (opd_init): Only walk corresponding hash chain if
	conflict list is using a hash table.
	* src/conflict.c (prelink_conflict): Likewise.
	(prelink_build_conflicts): Handle conflict list using a hash table.
	* src/cxx.c (remove_redundant_cxx_conflicts): Likewise.  Only walk
	corresponding hash chain if conflict list is using a hash table.

	* src/doit.c (find_ents): Clear e->u.tmp.
	(clear_ent_marks, find_unlisted_dependency): Remove.
	(prelink_ent): More efficient non-recursive check for
	unlisted dependencies.

	* src/cxx.c (find_cxx_sym): If fcs->lastndx != -1, search first
	among symbols around it.

2007-10-08  Jakub Jelinek  <jakub@redhat.com>

	* src/space.c (find_readonly_space): Disallow section insertion in
	between adjacent SHT_NOTE sections.  When creating new PT_LOAD,
	handle multiple consecutive SHT_NOTE sections with just one PT_NOTE
	segment for them.
	* testsuite/Makefile.am (TESTS): Add shuffle9.sh.
	* testsuite/Makefile.in: Regenerated.
	* testsuite/shuffle9.sh: New test.
	* testsuite/shuffle9.c: New.

	* testsuite/shuffle2.c: Add .previous at the end of __asm.
	* testsuite/reloc5.c (main): Likewise.

	* testsuite/tls3.sh: If libs aren't built with -fpic,
	disable the test under SELinux in enforcing mode.

	* src/cxx.c: Include alloca.h.
	(specials): Moved out of remove_redundant_cxx_conflicts to toplevel.
	Remove section fields.
	(find_cxx_sym_valsize, find_cxx_sym_cache): New structs.
	(struct find_cxx_sym): Add cache and lastndx fields.
	(cachecmp, create_cache): New functions.
	(find_cxx_sym): Add cache argument.  If cache[n] is NULL, call
	create_cache.  Do a binary search in cache[n]->vals array instead
	of always reading the whole symbol table.
	(remove_redundant_cxx_conflicts): Adjust find_cxx_sym caller.
	Check if secname is ".data" or ".data.rel.ro" instead of comparing
	it against specials[k].secname.  Use binary search in binsymcache
	when doing check_pltref checks.
	* testsuite/Makefile.am (TESTS): Add cxx2.sh.
	* testsuite/Makefile.in: Regenerated.
	* testsuite/cxx1.sh: Check that some conflicts are optimized out
	by C++ optimizations.
	* testsuite/cxx2.sh: New test.
	* testsuite/cxx2.C: New.

2007-10-04  Jakub Jelinek  <jakub@redhat.com>

	* src/prelink.h (read_config): New prototype.
	(gather_config, blacklist_from_config): Remove argument.
	* src/gather.c (struct config_line): New type.
	(config_lines, config_end): New variables.
	(read_config): New function.
	(gather_config, blacklist_from_config): Walk config_lines
	chain instead of reading the config file.
	* src/verify.c (prelink_verify): Call read_config.  Don't
	pass any argument to gather_config.
	* src/main.c (main): Likewise.  Also for blacklist_from_config.
	* testsuite/quick2.sh: Use new -c etc/prelink.conf.d/*.conf
	feature in prelink.conf and multiple config snippets.

2007-06-27  Jakub Jelinek  <jakub@redhat.com>

	* testsuite/reloc2.sh: If libs aren't built with -fpic,
	disable the test under SELinux in enforcing mode.

2007-03-02  Sandra Loosemore  <sandra@codesourcery.com>

	* doc/prelink.8: Spelling and grammar fixes.

2006-12-01  Jakub Jelinek  <jakub@redhat.com>

	* src/verify.c (prelink_verify): Unlink ent->filename in case of
	failures between closing the unprelinked dso and unlinking
	ent->filename.

2006-10-27  Jakub Jelinek  <jakub@redhat.com>

	* src/prelink.h (READWRITEPROTOSIZE): Undef after use.

2006-10-24  Richard Sandiford  <richard@codesourcery.com>

	* testsuite/tls3.sh: Use -fpic for MIPS too.
	* testsuite/reloc2.sh: Likewise.

	* testsuite/reloc4.sh: Use -mxgot when compiling for MIPS targets.
	* testsuite/reloc5.c (main): Make the printed inline asm globalize
	testzero.

	* testsuite/shuffle2.c (testzero): Globalize asm definition.

	* src/Makefile.am (arch_SOURCES): Add arch-mips.c
	* src/Makefile.in: Regenerate.
	* src/arch-mips.c: New file.

	* src/prelink.h (DT_MIPS_RLD_VERSION): Define.
	(DT_MIPS_TIME_STAMP): Likewise.
	(DT_MIPS_ICHECKSUM): Likewise.
	(DT_MIPS_IVERSION): Likewise.
	(DT_MIPS_FLAGS): Likewise.
	(DT_MIPS_BASE_ADDRESS): Likewise.
	(DT_MIPS_CONFLICT): Likewise.
	(DT_MIPS_LIBLIST): Likewise.
	(DT_MIPS_LOCAL_GOTNO): Likewise.
	(DT_MIPS_CONFLICTNO): Likewise.
	(DT_MIPS_LIBLISTNO): Likewise.
	(DT_MIPS_SYMTABNO): Likewise.
	(DT_MIPS_UNREFEXTNO): Likewise.
	(DT_MIPS_GOTSYM): Likewise.
	(DT_MIPS_HIPAGENO): Likewise.
	(DT_MIPS_RLD_MAP): Likewise.
	(R_MIPS_TLS_DTPMOD): Likewise.
	(R_MIPS_TLS_DTPREL): Likewise.
	(R_MIPS_TLS_TPREL): Likewise.
	(R_MIPS_GLOB_DAT): Likewise.
	(DSO): Add info_DT_MIPS_LOCAL_GOTNO, info_DT_MIPS_GOTSYM,
	and info_DT_MIPS_SYMTABNO.

	* src/dso.c (read_dynamic): Initialize the new DSO fields.
	(adjust_symbol_p): Handle stub values on MIPS.
	* src/prelink.c (prelink_prepare): Handle SHT_DYNAMIC and
	SHT_MIPS_REGINFO on MIPS.
	* src/space.c (find_readonly_space): Don't place the new section
	in the PT_PHDR segment.

	* src/prelink.h (data_iterator): New structure.
	(init_data_iterator): Declare.
	(get_data_from_iterator): Likewise.
	(get_sym_from_iterator): Likewise.
	* src/data.c (init_data_iterator): New function.
	(get_data_from_iterator): Likewise.
	(get_sym_from_iterator): Likewise.

	* src/prelink.h (READWRITEPROTOSIZE): New macro.  Instantiate
	READWRITEPROTO for big and little endian.  Add prototypes for
	native-endian functions (buf_read_uneNN, read_uneNN, buf_write_neNN
	and write_neNN).  Replace uses of READWRITEPROTO with uses of
	this macro.
	* src/data.c (BUFREADUNE, READUNE, WRITENE, BUFWRITENE): New macros.
	(READWRITESIZE): New macro.  Instantiate READWRITE for big and
	little endian.  Instantiate BUFREADUNE, READUNE, WRITENE
	and BUFWRITENE.  Replace uses of READWRITE with uses of this macro.
	* src/arch-sh.c (read_une32, write_ne32, buf_write_ne32): Delete.

	* src/prelink.h (PLArch): Add an arch_prelink_conflict callback.
	* src/conflict.c (prelink_build_conflicts): If defined, call it
	for each dependency.

	* src/prelink.h (PLArch): Make the arch_prelink callback take
	a "struct prelink_info *" argument, not a "DSO *" argument.
	* src/prelink.c (prelink): Adjust call accordingly.
	* src/arch-alpha.c (alpha_arch_prelink): Adjust definition accordingly.
	* src/arch-arm.c (arm_arch_prelink): Likewise.
	* src/arch-cris.c (cris_arch_prelink): Likewise.
	* src/arch-i386.c (i386_arch_prelink): Likewise.
	* src/arch-ia64.c (ia64_arch_prelink): Likewise.
	* src/arch-ppc.c (ppc_arch_prelink): Likewise.
	* src/arch-s390.c (s390_arch_prelink): Likewise
	* src/arch-s390x.c (s390x_arch_prelink): Likewise
	* src/arch-sh.c (sh_arch_prelink): Likewise.
	* src/arch-sparc64.c (sparc64_arch_prelink): Likewise.
	* src/arch-sparc.c (sparc_arch_prelink): Likewise
	* src/arch-x86_64.c (x86_64_arch_prelink): Likewise.

	* src/prelink.h (PLArch): Add an arch_adjust callback.
	* src/dso.c (adjust_dso): Use it, if defined.

	* src/prelink.h (adjust_symbol_p): Declare.
	* src/dso.c (adjust_symbol_p): New function, extracted from...
	(adjust_symtab): ...here.

2006-10-27  Jakub Jelinek  <jakub@redhat.com>

	* src/dwarf2.c (adjust_dwarf2_ranges): Fix adjusting if end of range
	is at the end of some section and there is padding before the
	following one.

2006-07-28  Alexandre Oliva  <aoliva@redhat.com>

	* src/cache.c (deps_cmp): Avoid segfault if both a and b are NULL.

2001-05-24  Jakub Jelinek  <jakub@redhat.com>

	* The beginning.