2008-11-20 Tristan Gingold <gingold@adacore.com>
* bfd.c (is32bit): Use architecture information for non-ELF targets.
This commit is contained in:
parent
d6e14abcef
commit
6aa341c739
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2008-11-20 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
|
* bfd.c (is32bit): Use architecture information for non-ELF
|
||||||
|
targets.
|
||||||
|
|
||||||
2008-11-20 Alan Modra <amodra@bigpond.net.au>
|
2008-11-20 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* elf32-ppc.c (allocate_dynrelocs): Always use tlsld_got for
|
* elf32-ppc.c (allocate_dynrelocs): Always use tlsld_got for
|
||||||
|
|
|
@ -1475,9 +1475,8 @@ is32bit (bfd *abfd)
|
||||||
return bed->s->elfclass == ELFCLASS32;
|
return bed->s->elfclass == ELFCLASS32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* For non-ELF, make a guess based on the target name. */
|
/* For non-ELF targets, use architecture information. */
|
||||||
return (strstr (bfd_get_target (abfd), "64") == NULL
|
return bfd_arch_bits_per_address (abfd) <= 32;
|
||||||
&& strcmp (bfd_get_target (abfd), "mmo") != 0);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue