From 57b828ef364b3cce05d9fb35be758cb4530e0e12 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 12 Dec 2013 14:41:15 -0800 Subject: Also copy EI_OSABI field bfd/ PR binutils/16318 * elf.c (_bfd_elf_copy_private_bfd_data): Remove BFD_ASSERT. Set e_flags only if elf_flags_init is FALSE. Copy EI_OSABI field. binutils/testsuite/ PR binutils/16318 * binutils-all/strip-10.d: Check OS/ABI. --- binutils/testsuite/ChangeLog | 5 +++++ binutils/testsuite/binutils-all/strip-10.d | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'binutils') diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog index fbcb5d256fa..26cda41d415 100644 --- a/binutils/testsuite/ChangeLog +++ b/binutils/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-12-12 H.J. Lu + + PR binutils/16318 + * binutils-all/strip-10.d: Check OS/ABI. + 2013-12-07 Mike Frysinger * binutils-all/windres/escapex-2.rc: Remove +x file mode. diff --git a/binutils/testsuite/binutils-all/strip-10.d b/binutils/testsuite/binutils-all/strip-10.d index 588c7d125cc..f4cf76d2032 100644 --- a/binutils/testsuite/binutils-all/strip-10.d +++ b/binutils/testsuite/binutils-all/strip-10.d @@ -1,8 +1,10 @@ #PROG: strip #source: unique.s #strip: -g -#readelf: -s +#readelf: -sh #name: strip on STB_GNU_UNIQUE +#... + OS/ABI:[ \t]+UNIX - GNU #... +[0-9]+: +[0-9a-f]+ +[0-9]+ +OBJECT +(UNIQUE|: 10) +DEFAULT +[1-9] foo -- cgit v1.2.1