linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: peter w krause <wklux@yahoo.co.uk>
To: Jason Roberts <v3ct0r99@hotmail.com>, linux-assembly@vger.kernel.org
Subject: Re: ld unresolved symbols
Date: Fri, 7 Nov 2003 15:26:31 +0000	[thread overview]
Message-ID: <200311071526.32007.wklux@yahoo.co.uk> (raw)
In-Reply-To: <Law9-F80KiupllcUPl4000104d2@hotmail.com>

Jason Roberts am Thursday 06 November 2003 19:21:
> Hi all,
> I was trying to implement some smc--- someone Maik ? suggested using
> mprotect
> to get write acces to code seg. Anyways, nasm will assemble but linker
> complains:
>
> smc.o(.text+0x64): In function `protect':
> : undefined reference to `_mprotect'
>
> I compiled like this:
> nasm -f elf -i/usr/include/sys smc.asm
> ld -s smc.o
>
> any help would be appreciated...
> I dont want to wade through 85+ pages of dense reading to find the right
> 'switch' -- I do have a life besides code bashing:)

you expect your readers to do that for you?
where do you assume your label '_mprotect' being?

> Thanks
> JR

-- 
Linux,Assembly,Forth: http://www.lxhp.in-berlin.de/index-lx.shtml
  >> hp -at- lxhp -dot- in-berlin -dot- de <<


  reply	other threads:[~2003-11-07 15:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-06 19:21 ld unresolved symbols Jason Roberts
2003-11-07 15:26 ` peter w krause [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-11-07  8:02 Maik Beckmann

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=200311071526.32007.wklux@yahoo.co.uk \
    --to=wklux@yahoo.co.uk \
    --cc=linux-assembly@vger.kernel.org \
    --cc=v3ct0r99@hotmail.com \
    /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).