タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

lionに関するembeddedのブックマーク (1)

  • Debugging and stack traces on Mac OS X Lion

    Mac OS X 10.7 Lion (really, Xcode 4) has changed the way that the system linker works in a way which makes debugging and interpreting stack traces difficult-to-impossible without special action. From man ld, Options when creating a main executable -pie This makes a special kind of main executable that is position independent (PIE).  On Mac OS X 10.5 and later, the OS the OS will load a PIE at a ra

    embedded
    embedded 2011/08/20
    MacのLionではデフォルトでPIE(Position Independent Executable)としてリンクするようになった。そのため既存のデバッガが動かない。回避するにはld に -no_pieをつける。gccからは-Wl,-no_pie
  • 1