Skip to content

Commit

Permalink
(Elf32_auxv_t): Make cross-compile safe. (Elf64_auxv_t): Likewise.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed May 11, 2005
1 parent 6ba85a6 commit 151c317
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions elf/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -899,23 +899,25 @@ typedef struct

typedef struct
{
int a_type; /* Entry type */
uint32_t a_type; /* Entry type */
union
{
long int a_val; /* Integer value */
void *a_ptr; /* Pointer value */
void (*a_fcn) (void); /* Function pointer value */
uint32_t a_val; /* Integer value */
/* We use to have pointer elements added here. We cannot do that,
though, since it does not work when using 32-bit definitions
on 64-bit platforms and vice versa. */
} a_un;
} Elf32_auxv_t;

typedef struct
{
long int a_type; /* Entry type */
uint64_t a_type; /* Entry type */
union
{
long int a_val; /* Integer value */
void *a_ptr; /* Pointer value */
void (*a_fcn) (void); /* Function pointer value */
uint64_t a_val; /* Integer value */
/* We use to have pointer elements added here. We cannot do that,
though, since it does not work when using 32-bit definitions
on 64-bit platforms and vice versa. */
} a_un;
} Elf64_auxv_t;

Expand Down

0 comments on commit 151c317

Please sign in to comment.