Hi! > 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 > +
There seems to be a differently implemented check for similar problem with ppc64, I would rather see these two merged into one. Eg testing for any special -m xxx parameters at start and setting variable that is used in tests. -- Cyril Hrubis [email protected] ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
