From: "Micah Stetson" <micah@stetsonnet.org>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu>
Subject: [9fans] setmalloctag in cc.a?
Date: Sun, 31 Dec 2006 09:53:44 -0800 [thread overview]
Message-ID: <b3b4f6f30612310953g69152150ka528c80e336f25a4@mail.gmail.com> (raw)
So I'm starting to play with Charles Forsyth's zc compiler for Atmel
AVRs (/n/sources/contrib/forsyth/avr.9gz), but I get errors trying to
link zc:
8l -o 8.out cgen.8 enam.8 list.8 mul.8 peep.8 reg.8 sgen.8 swt.8
txt.8 ../cc/cc.a8
malloc: /386/lib/libc.a(setmalloctag): redefinition: malloc
(1054) TEXT malloc+0(SB),$24
free: /386/lib/libc.a(setmalloctag): redefinition: free
(1098) TEXT free+0(SB),$12
realloc: /386/lib/libc.a(setmalloctag): redefinition: realloc
(1105) TEXT realloc+0(SB),$28
calloc: /386/lib/libc.a(setmalloctag): redefinition: calloc
(1134) TEXT calloc+0(SB),$24
mk: 8l -o ... : exit status=rc 985: 8l 987: error
I can fix this by adding the following lines to cc/compat.c:
void
setmalloctag(void*, ulong)
{
}
/sys/src/cmd/cc does this, but I don't understand why. I don't see
any place where setmalloctag is called, so why is 8l trying to pull it
in?
Micah
next reply other threads:[~2006-12-31 17:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-31 17:53 Micah Stetson [this message]
2006-12-31 19:51 ` Charles Forsyth
2007-01-01 1:29 ` Micah Stetson
2007-01-01 6:19 ` Micah Stetson
2007-01-01 10:18 ` Charles Forsyth
[not found] ` <66f4993796d468c324e7cd31e6c8c74e@proxima.alt.za>
2007-01-02 5:39 ` Micah Stetson
2007-01-03 4:06 ` lucio
2007-01-03 16:44 ` Micah Stetson
2007-02-06 4:46 ` Lucio De Re
2007-02-06 5:41 ` Lucio De Re
2007-02-06 6:31 ` Bruce Ellis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b3b4f6f30612310953g69152150ka528c80e336f25a4@mail.gmail.com \
--to=micah@stetsonnet.org \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).