Giter VIP home page Giter VIP logo

arm-x86's People

Watchers

 avatar

arm-x86's Issues

linking arm binary fails; once solved running fails

What steps will reproduce the problem?
1. trying to compile current SVN trunk with 32-bit SuSE SLES-10 which fails to 
link:
gcc main.o elfload.o alu.o decode.o codeenv.o  -Wl,-Ttext -Wl,90000000 
-Wl,-Tbss -Wl,A0000000 -Wl,-Tdata -Wl,B0000000 -Wl,-Map -Wl,arm.map -o arm
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld: arm: Not 
enough room for program headers (allocated 8, need 11)
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld: final 
link failed: Bad value
collect2: ld returned 1 exit status
make: *** [exec] Error 1

did search for this issue, and found this post:
http://www.groupsrv.com/linux/about17725.html
followed this reciepe, and indeed can then link successfully, but when I try to 
start an Android binary it fails with:
Intersecting segments found in ELF. Unsupported!
arm: elfload.c:504: compareSegments: Assertion `0' failed.
Aborted

is this because Android doesnt link against the usual ld-linux.so.2 but instead 
uses its own thingy = /bin/linker ?
Or is the above metioned fix to linking wrong?


Original issue reported on code.google.com by [email protected] on 14 Jun 2012 at 11:55

Error on compile: relocation truncated to fit

What steps will reproduce the problem?
execute make

What is the expected output? What do you see instead?
successful compile but I see this error:
main.o: In function `printUsage':
main.c:(.text+0x6): relocation truncated to fit: R_X86_64_PC32 against symbol 
`puts@@GLIBC_2.2.5' defined in .plt section in 
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o
main.o: In function `main':
main.c:(.text.startup+0x58): relocation truncated to fit: R_X86_64_PC32 against 
symbol `exit@@GLIBC_2.2.5' defined in .plt section in 
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o
main.c:(.text.startup+0x67): relocation truncated to fit: R_X86_64_PC32 against 
symbol `__printf_chk@@GLIBC_2.3.4' defined in .plt section in 
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o
main.c:(.text.startup+0x82): relocation truncated to fit: R_X86_64_PC32 against 
symbol `__printf_chk@@GLIBC_2.3.4' defined in .plt section in 
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o
main.c:(.text.startup+0x8c): relocation truncated to fit: R_X86_64_PC32 against 
symbol `puts@@GLIBC_2.2.5' defined in .plt section in 
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o
main.c:(.text.startup+0xa5): relocation truncated to fit: R_X86_64_PC32 against 
symbol `__assert_fail@@GLIBC_2.2.5' defined in .plt section in 
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o
main.c:(.text.startup+0xb4): relocation truncated to fit: R_X86_64_PC32 against 
symbol `__printf_chk@@GLIBC_2.3.4' defined in .plt section in 
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o
main.c:(.text.startup+0xcf): relocation truncated to fit: R_X86_64_PC32 against 
symbol `__printf_chk@@GLIBC_2.3.4' defined in .plt section in 
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o
main.c:(.text.startup+0xd9): relocation truncated to fit: R_X86_64_PC32 against 
symbol `puts@@GLIBC_2.2.5' defined in .plt section in 
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o
main.c:(.text.startup+0xf2): relocation truncated to fit: R_X86_64_PC32 against 
symbol `__assert_fail@@GLIBC_2.2.5' defined in .plt section in 
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o
main.c:(.text.startup+0xfa): additional relocation overflows omitted from the 
output
collect2: ld returned 1 exit status
make: *** [exec] Error 1


What version of the product are you using? On what operating system?
using latest svn-version on Ubuntu-12.10 with "gcc version 4.7.2 (Ubuntu/Linaro 
4.7.2-2ubuntu1)"

Please provide any additional information below.
I tried using gcc 4.6 but it shows the same result

Original issue reported on code.google.com by [email protected] on 14 Feb 2013 at 11:40

Segmentation fault

What steps will reproduce the problem?
1. I make the project and run it, but an erros occurs, "Segmentation
fault" was shown. I trace the code and found the following statement in 
decode.c < asm ("jmp *x86Translator"); > Here, *x86Transator pointer to data 
segment and the data segment can't
be executed, so the error occurs. 
     My development enviroment: Vmware Ubuntu 10.04(32 bit) and the latest arm-x86 code.
     Could you please help me? many thanks.


Original issue reported on code.google.com by [email protected] on 6 Sep 2012 at 7:52

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.