DEEPAK BHATIA wrote:
> The following enum had both __x86 and __i386 macro. This is in file _libld.h 
> file.
> What is the difference in __x86 and __i386 macro ?
> 
> /*
> * Types of segment index.
> */
> typedef enum {
>       LD_PHDR,        LD_INTERP,      LD_SUNWCAP,     LD_TEXT,
>       LD_DATA,        LD_BSS,
> #if   (defined(__i386) || defined(__amd64)) && defined(_ELF64)
>       LD_LRODATA,     LD_LDATA,
> #endif
>       LD_DYN,         LD_DTRACE,       LD_NOTE,       LD_SUNWBSS,
>       LD_TLS,
> #if defined(__x86) && defined(_ELF64)
>       LD_UNWIND,
> #endif
>       LD_EXTRA,
>       LD_NUM
> } Segment_ndx;

 From sys/isa_defs.h:

  * __x86
  *      This is ONLY a synonym for defined(__i386) || defined(__amd64)
  *      which is useful only insofar as these two architectures share
  *      common attributes.  Analogous to __sparc.

Which obviously isn't being used very consistently :-)


-- 
Rod

Reply via email to