HP3000-L Archives

September 1999, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Klein <[log in to unmask]>
Reply To:
Date:
Tue, 28 Sep 1999 19:32:32 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
>It would help me if anyone could explain why
>the /bin/ld was a symbolic link to /SYS/HPBIN/C89?

It turns out that /SYS/HPBIN/C89 is a preprocessor that interprets
scripts found in /etc. If you look at c89.ccg, you'll see the script
that drives the c89 compiler. Note that ar.ccg, strip.ccg, etc. also
have counterparts in /bin (/bin/ar /bin/strip) and they too are
links to /SYS/HPBIN/C89.

gcc needed a functional ld that invoked the linkeditor, so, I decided
to canabalize the c89.ccg script and extract only the linking portion
of that script to produce the ld workalike. At the time I was looking
for the quick solution as I was at the point where I was going to
attempt my first link.

It has always been a bit dysfunctional, but it does serve the purpose,
and I've been too busy to actually write a ld program.

>Also could you please contrast ld in GNU and ld in C89 and what happens
>when you mix GNU gcc compliler with a C89 ld loader.

Since I'm not sure about what's in the newer script, I can't comment.
But, I'd be interested in making sure it works with gcc.

Regards,


M.

ATOM RSS1 RSS2