Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Incompatible Linux/Solaris ELF section type codes
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ali Bahrami  
View profile  
 More options Feb 25, 5:32 pm
From: Ali Bahrami <Ali.Bahr...@Sun.COM>
Date: Wed, 25 Feb 2009 14:32:10 -0800 (PST)
Local: Wed, Feb 25 2009 5:32 pm
Subject: Incompatible Linux/Solaris ELF section type codes
ELF has a scheme in which numeric ranges are partitioned into
generic, OS, and platform ranges. Generic items must be identical
on all ELF systems. The OS and platform ranges are under the control
of the individual entities that develop each system, and need not
be compatible (though it's better if they are).

As part of this scheme, there was an agreement made (before my
time, not sure about the details) that an object that uses any
OS or platform specific details should identify itself using the
e_ident[EI_OSABI] ELF header element. That would allow the reader
to apply the right interpretation to the OS and platform values
found therein. A value of 0 means "no extensions or undefined".
Codes have been assigned for the various operating systems (linux
is 3, solaris is 6, and so forth). However, as far as I know, we're
all still setting this value to 0.

Instead of explicitly tagging our objects, we've all been trying
very hard to make sure that the new values we add in the OS and
platform
ranges don't conflict with those of others. I think this is a very
good thing, and hope it will continue. However, I've been comparing
Solaris and Linux ELF objects recently, and have become aware of some
collisions in the assignment of section types:

    Value         Solaris                             Linux

--------------------------------------------------------------------------- -------------------
    0x6ffffff5    SHT_SUNW_cap                SHT_GNU_ATTRIBUTES
    0x6ffffff6    SHT_SUNW_SIGNATURE   SHT_GNU_HASH
    0x6ffffff7    SHT_SUNW_ANNOTATE     SHT_GNU_LIBLIST
    0x6ffffff8    SHT_SUNW_DEBUGSTR    SHT_CHECKSUM

So I'd like to ask: Isn't it time to start setting e_ident[EI_OSABI]?

There was some discussion of this last fall when we met at Intel,
but nothing definite came out of it. At the time, I got the impression
that people didn't think it was necessary, at least in part due to a
perception that there are no known conflicts. That doesn't seem
to be the case however.

- Ali


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google