When making with -m32 in x86_64 kernel, ld should be set "LDEMULATION" environment variable to "elf_i386" or added "-m elf_i386" option.
Signed-off-by: Peng Haitao <[email protected]> --- testcases/commands/ade/ld/ld01 | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/testcases/commands/ade/ld/ld01 b/testcases/commands/ade/ld/ld01 index cf1d595..7c217d0 100755 --- a/testcases/commands/ade/ld/ld01 +++ b/testcases/commands/ade/ld/ld01 @@ -44,6 +44,13 @@ TCdat=${TCdat:-`pwd`} TCtmp=${TCtmp:-/tmp/ld-$$} mkdir $TCtmp +if [ "`uname -m`" == "x86_64" ]; then + file $TCdat/ldmain.obj | grep 32-bit >/dev/null 2>&1 + if [ $? -eq 0 ]; then + export LDEMULATION="elf_i386" + fi +fi + #ASSERTION 1 #Test for graceful failure when ld can't find a fileTest calling ld directly # -- 1.7.1 -- Best Regards, Peng Haitao ------------------------------------------------------------------------------ 10 Tips for Better Web Security Learn 10 ways to better secure your business today. Topics covered include: Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, security Microsoft Exchange, secure Instant Messaging, and much more. http://www.accelacomm.com/jaw/sfnl/114/51426210/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
