LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-30-2004, 10:52 PM   #1
linuxanswer
Member
 
Registered: Oct 2003
Distribution: woodY 3.0 stable
Posts: 61

Rep: Reputation: 15
assemby inline


code:
#include <unistd.h>

main()
{
setuid(0);
}


if i disas the main with gdb it's all ok, but if i disas the setuid obtain

0xaddress <setuid>: .long 0x0
0xaddre.. <setuid+4>: .long 0x0

OR

i have this

0xaddress <setuid>: Cannot access memory at address 0xadrr...


any ideas ? tnx in advance
 
Old 05-01-2004, 11:58 AM   #2
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
i compiled and disassembled same code and did not get what u did.. show a post of ur gdb session.
[code]
 
Old 05-02-2004, 07:59 AM   #3
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 419

Rep: Reputation: 35
[infamous' post] + What does this have to do with Inline Asm?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
inline assembly in gcc gursev Programming 2 03-04-2005 02:17 AM
Snort inline enyawix Linux - Networking 0 09-24-2004 03:10 PM
[SOLVED] C++ inline function: Use or don't use? druuna Programming 7 09-13-2004 04:08 PM
C++ inline functions Slickfty2 Programming 12 04-23-2003 07:13 PM
inline AutoComplete hmorrow General 2 06-20-2001 04:15 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration