> My next question is: why does ctfmerge prune the .hash section header > from the elf object? When krtld loads unix it looks for the DT_HASH entry > in the program headers to locate the hash data. However, ctfmerge flags > .hash to be ignored so neither the header nor the corresponding data is > copied to the output elf file. So when krtld looks up the dynamic PHDR it > gets an address for the DT_HASH entity but the data there is junk.
We keep Phdrs as-is and I know of no code in ctfmerge to mess with .hash, but perhaps there is a bug somewhere. Where are you seeing that? The relevant code should be usr/src/tools/ctf/cvt/output.c in write_file(). -Mike -- Mike Shapiro, Solaris Kernel Development. blogs.sun.com/mws/ _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
