From 71213dc2589554dc8f8061e9b04e80c55d098b6a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 5 Sep 2006 02:02:55 +0000 Subject: * Makerules (shlib.lds): If have-hash-style, put .hash section at the end of the RO segment. 2006-09-04 Ulrich Drepper * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new style hash table format is used. 2006-09-04 Jakub Jelinek --- Makerules | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makerules') diff --git a/Makerules b/Makerules index f50f7a4884..b0be86b368 100644 --- a/Makerules +++ b/Makerules @@ -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) \ -- cgit 1.4.1