PR binutils/14873
* elf-attrs.c (_bfd_elf_copy_obj_attributes): Don't attempt to copy attributes from or to non-ELF.
This commit is contained in:
parent
20e52bd2b8
commit
dafbc74d2c
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2013-02-07 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
PR binutils/14873
|
||||||
|
* elf-attrs.c (_bfd_elf_copy_obj_attributes): Don't attempt to
|
||||||
|
copy attributes from or to non-ELF.
|
||||||
|
|
||||||
2013-02-06 H.J. Lu <hongjiu.lu@intel.com>
|
2013-02-06 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* elf32-i386.c (elf_i386_allocate_dynrelocs): Don't clear pc_count
|
* elf32-i386.c (elf_i386_allocate_dynrelocs): Don't clear pc_count
|
||||||
|
|
|
@ -347,6 +347,10 @@ _bfd_elf_copy_obj_attributes (bfd *ibfd, bfd *obfd)
|
||||||
int i;
|
int i;
|
||||||
int vendor;
|
int vendor;
|
||||||
|
|
||||||
|
if (bfd_get_flavour (ibfd) != bfd_target_elf_flavour
|
||||||
|
|| bfd_get_flavour (obfd) != bfd_target_elf_flavour)
|
||||||
|
return;
|
||||||
|
|
||||||
for (vendor = OBJ_ATTR_FIRST; vendor <= OBJ_ATTR_LAST; vendor++)
|
for (vendor = OBJ_ATTR_FIRST; vendor <= OBJ_ATTR_LAST; vendor++)
|
||||||
{
|
{
|
||||||
in_attr
|
in_attr
|
||||||
|
|
Loading…
Add table
Reference in a new issue