Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into...
[openembedded.git] / recipes / binutils / binutils-cvs / binutils-arm-pr7093.patch
1 Index: binutils/bfd/elf32-arm.c
2 ===================================================================
3 RCS file: /cvs/src/src/bfd/elf32-arm.c,v
4 retrieving revision 1.162
5 retrieving revision 1.163
6 diff -u -r1.162 -r1.163
7 --- binutils/bfd/elf32-arm.c    23 Dec 2008 09:01:45 -0000      1.162
8 +++ binutils/bfd/elf32-arm.c    23 Dec 2008 11:46:17 -0000      1.163
9 @@ -4608,6 +4608,10 @@
10    Elf_Internal_Shdr *hdr;
11    unsigned int i, localsyms;
12  
13 +  /* PR 7093: Make sure that we are dealing with an arm elf binary.  */
14 +  if (! is_arm_elf (abfd))
15 +    return;
16 +
17    if ((abfd->flags & DYNAMIC) != 0)
18      return;
19