* config/rs6000/driver-rs6000.c: Include link.h.
Use ElfW instead of wordsize-specif typedef.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127348
138bc75d-0d04-0410-961f-
82ee72b054a4
+2007-08-10 David Edelsohn <edelsohn@gnu.org>
+
+ PR target/33042
+ * config/rs6000/driver-rs6000.c: Include link.h.
+ Use ElfW instead of wordsize-specif typedef.
+
2007-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* system.h (CONST_CAST): New.
#endif
#ifdef __linux__
-# include <elf.h>
+# include <link.h>
#endif
#ifdef __APPLE__
if (fd != -1)
{
char buf[1024];
- Elf32_auxv_t *av;
+ ElfW(auxv_t) *av;
ssize_t n;
n = read (fd, buf, sizeof (buf));
if (n > 0)
{
- for (av = (Elf32_auxv_t *) buf; av->a_type != AT_NULL; ++av)
+ for (av = (ElfW(auxv_t) *) buf; av->a_type != AT_NULL; ++av)
switch (av->a_type)
{
case AT_PLATFORM:
if (fd != -1)
{
char buf[1024];
- Elf32_auxv_t *av;
+ ElfW(auxv_t) *av;
ssize_t n;
n = read (fd, buf, sizeof (buf));
if (n > 0)
{
- for (av = (Elf32_auxv_t *) buf; av->a_type != AT_NULL; ++av)
+ for (av = (ElfW(auxv_t) *) buf; av->a_type != AT_NULL; ++av)
switch (av->a_type)
{
case AT_DCACHEBSIZE: