Git Product home page Git Product logo

Comments (11)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024

Original comment by [email protected] on 13 Sep 2007 at 8:07

  • Changed title: Linking problems on Linux that cause strip to produce corrupt objects

from iphone-dev.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
The corruption is happening here:

check_indirect_symtab (arch=0x3001c0, member=0x0, object=0x300290, nitems=2, 
reserved1=30, 
section_type=6, contents=0x6e000 "?m", symbols=0x76080, symbols64=0x0, 
nsyms=303, strings=0x77430 
"", missing_reloc_symbols=0xbfffef3c, host_byte_sex=LITTLE_ENDIAN_BYTE_SEX) at 
strip.c:2019


Original comment by [email protected] on 13 Sep 2007 at 8:21

from iphone-dev.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
after running indent on the file so I can read it, it's:

0x00002245 in check_indirect_symtab (arch=0x3001c0, member=0x0, 
object=0x300290, nitems=2, 
reserved1=30, section_type=6, contents=0x6e000 "?m", symbols=0x76080, 
symbols64=0x0, nsyms=303, 
strings=0x77430 "", missing_reloc_symbols=0xbfffef3c, 
host_byte_sex=LITTLE_ENDIAN_BYTE_SEX) at 
strip.c:1978
1978                        *(uint32_t *) (contents + k * 4) = value;


Original comment by [email protected] on 13 Sep 2007 at 8:30

from iphone-dev.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
Possibly related to a faulty __attribute__((hidden)).

Original comment by [email protected] on 13 Sep 2007 at 10:24

from iphone-dev.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
Doesn't always seem to occur. Hmmmm.

Original comment by [email protected] on 13 Sep 2007 at 11:38

from iphone-dev.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
Rebuilt and the problem went away -- rebuild again and it showed up. Even after 
a
"successful" build, many apps are randomly crashing (ruby interpreter for 
example)

Original comment by [email protected] on 16 Sep 2007 at 4:42

from iphone-dev.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
Could you file the crashes as separate bugs, with stack backtraces? Thanks.

Original comment by [email protected] on 16 Sep 2007 at 2:27

from iphone-dev.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
Any ideas for obtaining a stack backtrace from a native app? I didn't see an 
easy way
to build gcc.

Original comment by [email protected] on 16 Sep 2007 at 4:50

from iphone-dev.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
On the iPhone, /var/logs/CrashReporter/LatestCrash.plist has a backtrace; you 
can also try vmutils.framework in 
PrivateFrameworks on the iPhone (class-dump it).


Original comment by [email protected] on 19 Sep 2007 at 10:34

from iphone-dev.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
Filed as bug #44. 

Original comment by [email protected] on 19 Sep 2007 at 10:49

from iphone-dev.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
I got around this by skipping the stripping of libgcc_s.  

run make.  wait until make stops with errors about arm-apple-darwin-lipo and
libgcc_s.10.4.dylib.  Then run:

# cd llvm-gcc-4.0-iphone/gcc
# arm-apple-darwin-lipo -output libgcc_s.10.4.dylib -create libgcc_s.1.dylib.tmp
# arm-apple-darwin-lipo -output libgcc_s.10.5.dylib -create libgcc_s.1.dylib.tmp
# cd ..

and then make and sudo make install to finish up.  

Apps now compile for me on an x86 Linux box!

Original comment by benjie on 9 Oct 2007 at 11:51

from iphone-dev.

Related Issues (20)

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.