flat assembler
Message board for the users of flat assembler.

Index > Linux > Undefined symbol?

Author
Thread Post new topic Reply to topic
sunnysigil



Joined: 18 Jun 2014
Posts: 6
sunnysigil 18 Jun 2014, 20:53
I'm trying to implement ptrace within my ELF but I get the undefined symbol error regarding PTRACE_ATTACH when I attempt to compile it, here's a snippet of the code.

Code:
section '.text' executable
public main
extrn  printf
extrn  ptrace
extrn  exit
main:
      ccall ptrace,PTRACE_ATTACH,mypid,0,0     


Could anyone point towards what's going wrong?
Post 18 Jun 2014, 20:53
View user's profile Send private message Reply with quote
HaHaAnonymous



Joined: 02 Dec 2012
Posts: 1178
Location: Unknown
HaHaAnonymous 18 Jun 2014, 21:43
[ Post removed by author. ]


Last edited by HaHaAnonymous on 28 Feb 2015, 18:10; edited 1 time in total
Post 18 Jun 2014, 21:43
View user's profile Send private message Reply with quote
sunnysigil



Joined: 18 Jun 2014
Posts: 6
sunnysigil 18 Jun 2014, 21:58
HaHaAnonymous wrote:
Quote:

Could anyone point towards what's going wrong?

PTRACE_ATTACH is not defined.


So how would one get around this?
Post 18 Jun 2014, 21:58
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2909
Location: 0x77760000
typedef 18 Jun 2014, 22:26
Post 18 Jun 2014, 22:26
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.