Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
19 crawler(s) on-line.
 124 guest(s) on-line.
 0 member(s) on-line.



You are an anonymous user.
Register Now!
 DiscreetFX:  1 hr 14 mins ago
 amigakit:  2 hrs 46 mins ago
 Hammer:  3 hrs 36 mins ago
 Rob:  4 hrs 14 mins ago
 billt:  4 hrs 22 mins ago
 amigang:  4 hrs 33 mins ago
 OneTimer1:  4 hrs 35 mins ago
 agami:  4 hrs 59 mins ago
 matthey:  5 hrs 5 mins ago
 kolla:  5 hrs 13 mins ago

/  Forum Index
   /  Amiga OS4 Hardware
      /  OS4 on Classics - mini-FAQ/Questions and Answers
Register To Post

PosterThread
TiredofLife 
Re: OS4 on Classics - mini-FAQ/Questions and Answers
Posted on 23-Oct-2007 23:37:44
#1 ]
Super Member
Joined: 6-Jul-2005
Posts: 1702
From: Here

@Nuts and Teti

Cheers to you both.
Will get things set up in anticipation.

_________________
If your nose runs and your feet smell, you're upside down.

 Status: Offline
Profile     Report this post  
 Top | Parent


PosterThread
Rogue 
Re: OS4 on Classics - mini-FAQ/Questions and Answers
Posted on 24-Oct-2007 11:25:32
#1 ]
OS4 Core Developer
Joined: 14-Jul-2003
Posts: 3999
From: Unknown

@CodeSmith

if you use -fPIC, the resulting binary will have a GOT (and PLT), however, you don't need -fPIC for anything else but shared object files. Althought the AmigaOS 4.0 ELF files are EXE's, they still contain the relocation tables so they can be loaded at any position.

In theory, the -fPIC wouldn't even be needed for the shared object files as they are implemented right now, however, the GOT and PLT are used like some sort of "phone book" and as such also resolve global symbols that use late/lazy binding - if you have e.g. an unresolved "printf" in your program, the PLT contains a stub that does the run-time lookup and jumps to the right "printf", even if the object has been loaded with dlopen. In that respect, AmigaOS shared objects behave just like UNIX shared objects.

_________________
Seriously, if you want to contact me do not bother sending me a PM here. Write me a mail

 Status: Offline
Profile     Report this post  
 Top | Parent

Replies
SubjectPosterDate
      Re: OS4 on Classics - mini-FAQ/Questions and AnswersCodeSmith24-Oct-2007 11:33:51
          Re: OS4 on Classics - mini-FAQ/Questions and Answersalientek24-Oct-2007 12:48:44
      Re: OS4 on Classics - mini-FAQ/Questions and AnswersAndrewBell24-Oct-2007 17:41:37
          Re: OS4 on Classics - mini-FAQ/Questions and AnswersRogue26-Oct-2007 13:42:41
              Re: OS4 on Classics - mini-FAQ/Questions and Answersmy_pc_is_amiga28-Oct-2007 4:03:42



[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle