Skip to content

Commit

Permalink
* Makerules (shlib.lds): If have-hash-style, put .hash section
Browse files Browse the repository at this point in the history
	at the end of the RO segment.

2006-09-04  Ulrich Drepper  <drepper@redhat.com>

	* elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
	style hash table format is used.

2006-09-04  Jakub Jelinek  <jakub@redhat.com>
  • Loading branch information
Ulrich Drepper committed Sep 5, 2006
1 parent 03eeff8 commit 71213dc
Showing 3 changed files with 19 additions and 1 deletion.
10 changes: 10 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
2006-09-04 Jakub Jelinek <jakub@redhat.com>

* Makerules (shlib.lds): If have-hash-style, put .hash section
at the end of the RO segment.

2006-09-04 Ulrich Drepper <drepper@redhat.com>

* elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
style hash table format is used.

2006-09-04 Jakub Jelinek <jakub@redhat.com>

* resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
8 changes: 7 additions & 1 deletion Makerules
Original file line number Diff line number Diff line change
@@ -487,7 +487,13 @@ $(common-objpfx)shlib.lds: $(common-objpfx)config.make $(..)Makerules
-Wl,--verbose 2>&1 | \
sed > $@T \
-e '/^=========/,/^=========/!d;/^=========/d' \
-e 's/^.*\.hash[ ]*:.*$$/ .note.ABI-tag : { *(.note.ABI-tag) } &/' \
$(if $(filter yes,$(have-hash-style)), \
-e 's/^.*\.gnu\.hash[ ]*:.*$$/ .note.ABI-tag : { *(.note.ABI-tag) } &/' \
-e '/^[ ]*\.hash[ ]*:.*$$/{h;d;}' \
-e '/DATA_SEGMENT_ALIGN/{H;g}' \
, \
-e 's/^.*\.hash[ ]*:.*$$/ .note.ABI-tag : { *(.note.ABI-tag) } &/' \
) \
-e 's/^.*\*(\.dynbss).*$$/& \
PROVIDE(__start___libc_freeres_ptrs = .); \
*(__libc_freeres_ptrs) \
2 changes: 2 additions & 0 deletions elf/do-lookup.h
Original file line number Diff line number Diff line change
@@ -195,6 +195,8 @@ do_lookup_x (const char *undef_name, uint_fast32_t new_hash,
while ((*hasharr++ & 1u) == 0);
}
}
/* No symbol found. */
symidx = SHN_UNDEF;
}
else
{

0 comments on commit 71213dc

Please sign in to comment.