ld: fix error with -m32 in x86_64
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi!
Quoted 13 lines
When making with -m32 in
x86_64kernel, ld should be set "LDEMULATION" environment variable to "elf_i386" or added "-melf_i386" option.Signed-off-by Peng Haitao <[email protected]>--- testcases/commands/ade/ld/ld01 | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)testcases/commands/ade/ld/ld01 +0
-0
testcases/commands/ade/ld/ld01 TCdat=${TCdat:-`pwd`} · line 53
Quoted 10 lines
testcases/commands/ade/ld/ld01 +7
-0@@ -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.
Signature · 13 lines
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
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi!
Commited, thanks.
Signature · 12 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list