[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: prelink and undefined non-weak symbols



On May 04, Jack Howarth <howarth@bromo.msbb.uc.edu> wrote:

 >   If you are interested, one useful thing debian could do for
 >prelink support is help resolve as many "undefined non-weak symbols"
 >which occur when prelinking as possible. Many of these are likely
I did... See: 175055 175059 180679 180678 187343 187344 187345 187346
187347 187348 187349 187350 187351 187353 187354 187355 187356 187357
187359 187360 187361 187362 187363 187364 187365 187366 187367 187368
187369 187370 187371 187372 187373 187374 187375.

This is the script I use to look for missing symbols:

#!/bin/sh -e

LIBDIRS="/lib /usr/lib /usr/X11R6/lib"

FILES=$(find $LIBDIRS -maxdepth 1 -type f -name '*.so*' | sort \
	| xargs grep --files-with-matches $1)

for file in $FILES; do
#	echo "		checking $file"
	if nm --dynamic "$file" | grep " [^U] ${1}$"; then
		echo $file
#		break
	fi
done

exit 0
# A absolute
# B BSS (uninitialized data section)
# C common (uninitialized data)
# D initialized data section
# G initialized data section for small objects
# N debugging symbol
# R read only data section
# S uninitialized data section for small objects
# T text (code)
# U undefined
# V weak object
# W weak symbol that has not been specifically tagged as a weak object symbol


-- 
ciao, |
Marco | [790 ag8u5V1/NHDmc]



Reply to: