• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ld linker freezes my computer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ld linker freezes my computer


  • Subject: ld linker freezes my computer
  • From: Andrew Pennebaker <email@hidden>
  • Date: Mon, 15 Oct 2012 16:08:26 -0400

Summary:

Attempting to link a clang i386 object file into a Mac executable results in my computer becoming nonresponsive.

I inquired about assembling code with the GNU assembler (Gas AKA as). As Xcode contains an old linker, as 1.38, Apple advised using clang instead, per ticket 12408921 (https://bugreport.apple.com/cgi-bin/WebObjects/RadarWeb.woa/3/wo/UMrtsuR9aIxsbFCn1P0R4w/5.83.28.0.9).

Steps to Reproduce:

1. Download the Hello World Gas code (https://github.com/mcandre/mcandre/tree/master/gas/hello/freebsd).
2. Run "make".

Expected Results:

3. The object code is linked into an executable, and then the executable is run.

$ make
clang -c -o hello.o -arch i386 hello.s
ld -o hello -macosx_version_min 10.6 hello.o
./hello
Hello World!

Actual Results:

3. The computer freezes up.

$ make
clang -c -o hello.o -arch i386 hello.s
ld -o hello -macosx_version_min 10.6 hello.o
(frozen)

Attempts to stop the linker with Control+C, quitting Terminal.app, Force Quit Applications, and Activity Monitor fail, as the system becomes too slow to process user input.

Specs:

* ld64-134.9
* clang 4.1
* as 1.38
* Xcode 4.5
* Mac OS X 10.8.2
* MacBook Pro 2009

--
Cheers,

Andrew Pennebaker
www.yellosoft.us
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: ld linker freezes my computer
      • From: Mark Wagner <email@hidden>
  • Prev by Date: Re: trouble getting Hello World / gas / Mac OS X to work
  • Next by Date: fwprintf doesn't
  • Previous by thread: Re: trouble getting Hello World / gas / Mac OS X to work
  • Next by thread: Re: ld linker freezes my computer
  • Index(es):
    • Date
    • Thread