Unix Technical Forum

Re: [PATCH] Magic block for modules

This is a discussion on Re: [PATCH] Magic block for modules within the Pgsql Patches forums, part of the PostgreSQL category; --> > > it's considered the linker's job to prevent loading 32-bit > code into a > > 64-bit executable ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Patches

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 12:37 AM
Magnus Hagander
 
Posts: n/a
Default Re: [PATCH] Magic block for modules

> > it's considered the linker's job to prevent loading 32-bit
> code into a
> > 64-bit executable or vice versa, so I don't think we need to be
> > checking for common assumptions about sizeof(long).

>
> I know ELF headers contain some of this info, and unix in
> general doesn't try to allow different bit sizes in one
> binary. Windows used to (maybe still has) a mechanism to
> allow 32-bit code to call 16-bit libraries. Do they allow the
> same for 64-bit libs?


Yes, but it's not something that it does automatically - you have to
specifically seti t up to call the thunking code. It's not something I
think we need to support at all. (Performance is also quite horrible -
at least on 16 vs 32, I'd assume the same for 32 vs 64)


//Magnus

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:03 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com