diff options
| author | Ulf Hermann <[email protected]> | 2017-03-28 11:59:25 +0200 |
|---|---|---|
| committer | Ulf Hermann <[email protected]> | 2017-03-28 12:00:48 +0200 |
| commit | e3a83e87ef47b90240aba70c347fcd86a16424bc (patch) | |
| tree | 1841bc458a9c5becfd32a4c071a65904722103af | |
| parent | e22cc80923f94e54c9384421904461958899db5b (diff) | |
| parent | 93c51144c3f664d4e9709da75a1d0fa00ea0fe95 (diff) | |
Merge remote-tracking branch 'upstream/master' into HEAD
Change-Id: I7874d814ddf7e5887fd720c899cb9e7499d5fbb8
| -rw-r--r-- | backends/ChangeLog | 6 | ||||
| -rw-r--r-- | backends/ppc64_init.c | 1 | ||||
| -rw-r--r-- | backends/ppc_attrs.c | 1 | ||||
| -rw-r--r-- | libasm/ChangeLog | 6 | ||||
| -rw-r--r-- | libasm/asm_newsym.c | 6 | ||||
| -rw-r--r-- | tests/ChangeLog | 5 | ||||
| -rw-r--r-- | tests/Makefile.am | 4 | ||||
| -rwxr-xr-x | tests/run-readelf-A.sh | 16 | ||||
| -rw-r--r-- | tests/testfileppc64attrs.o.bz2 | bin | 0 -> 222 bytes |
9 files changed, 39 insertions, 6 deletions
diff --git a/backends/ChangeLog b/backends/ChangeLog index 1c561b50..39390cb8 100644 --- a/backends/ChangeLog +++ b/backends/ChangeLog @@ -1,3 +1,9 @@ +2017-02-15 Mark Wielaard <[email protected]> + + * ppc64_init.c (ppc64_init): Add check_object_attribute HOOK. + * ppc_attrs.c (ppc_check_object_attribute): Add Single-precision hard + float. + 2016-11-02 Mark Wielaard <[email protected]> * i386_regs.c (i386_register_info): Add fallthrough comment. diff --git a/backends/ppc64_init.c b/backends/ppc64_init.c index 2ba82327..11d3a77f 100644 --- a/backends/ppc64_init.c +++ b/backends/ppc64_init.c @@ -67,6 +67,7 @@ ppc64_init (Elf *elf __attribute__ ((unused)), HOOK (eh, syscall_abi); HOOK (eh, core_note); HOOK (eh, auxv_info); + HOOK (eh, check_object_attribute); HOOK (eh, abi_cfi); /* gcc/config/ #define DWARF_FRAME_REGISTERS. */ eh->frame_nregs = (114 - 1) + 32; diff --git a/backends/ppc_attrs.c b/backends/ppc_attrs.c index 612c5769..48d7129d 100644 --- a/backends/ppc_attrs.c +++ b/backends/ppc_attrs.c @@ -51,6 +51,7 @@ ppc_check_object_attribute (Ebl *ebl __attribute__ ((unused)), "Hard or soft float", "Hard float", "Soft float", + "Single-precision hard float", }; if (value < sizeof fp_kinds / sizeof fp_kinds[0]) *value_name = fp_kinds[value]; diff --git a/libasm/ChangeLog b/libasm/ChangeLog index 26fc5a95..16568422 100644 --- a/libasm/ChangeLog +++ b/libasm/ChangeLog @@ -1,8 +1,12 @@ +2017-02-12 Mark Wielaard <[email protected]> + + * asm_newsym.c (asm_newsym): Increase TEMPSYMLEN to 13. + 2017-02-15 Ulf Hermann <[email protected]> * disasm_str.c: Include system.h. -2015-10-11 Akihiko Odaki <[email protected]> +2016-10-11 Akihiko Odaki <[email protected]> * asm_align.c: Remove sys/param.h include. diff --git a/libasm/asm_newsym.c b/libasm/asm_newsym.c index 332432a9..53891668 100644 --- a/libasm/asm_newsym.c +++ b/libasm/asm_newsym.c @@ -1,5 +1,5 @@ /* Define new symbol for current position in given section. - Copyright (C) 2002, 2005, 2016 Red Hat, Inc. + Copyright (C) 2002, 2005, 2016, 2017 Red Hat, Inc. This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2002. @@ -44,7 +44,9 @@ AsmSym_t * asm_newsym (AsmScn_t *asmscn, const char *name, GElf_Xword size, int type, int binding) { -#define TEMPSYMLEN 10 +/* We don't really expect labels with many digits, but in theory it could + be 10 digits (plus ".L" and a zero terminator). */ +#define TEMPSYMLEN 13 char tempsym[TEMPSYMLEN]; AsmSym_t *result; diff --git a/tests/ChangeLog b/tests/ChangeLog index cc6a19bf..e6656c75 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +2017-02-15 Mark Wielaard <[email protected]> + + * Makefile.am (EXTRA_DIST): Add testfileppc64attrs.o.bz2. + * run-readelf-A.sh: Add testfileppc64.o test. + 2017-02-15 Ulf Hermann <[email protected]> * elfstrmerge.c: Include system.h. diff --git a/tests/Makefile.am b/tests/Makefile.am index d4659cdb..a27e8687 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,6 +1,6 @@ ## Process this file with automake to create Makefile.in ## -## Copyright (C) 1996-2016 Red Hat, Inc. +## Copyright (C) 1996-2017 Red Hat, Inc. ## This file is part of elfutils. ## ## This file is free software; you can redistribute it and/or modify @@ -317,7 +317,7 @@ EXTRA_DIST = run-arextract.sh run-arsymtest.sh \ run-aggregate-size.sh testfile-sizes1.o.bz2 testfile-sizes2.o.bz2 \ testfile-sizes3.o.bz2 \ run-readelf-A.sh testfileppc32attrs.o.bz2 \ - testfilesparc64attrs.o.bz2 \ + testfilesparc64attrs.o.bz2 testfileppc64attrs.o.bz2 \ testfile-debug-types.bz2 \ run-getsrc-die.sh run-strptr.sh \ testfile-x32-core.bz2 testfile-x32.bz2 \ diff --git a/tests/run-readelf-A.sh b/tests/run-readelf-A.sh index 03d511c9..b7432bec 100755 --- a/tests/run-readelf-A.sh +++ b/tests/run-readelf-A.sh @@ -32,7 +32,12 @@ # # gcc -c testfilesparc64attrs.s -testfiles testfilearm testfileppc32attrs.o testfilesparc64attrs.o +# = testfileppc64attrs.s = +# .gnu_attribute 4,3 +# +# gcc -c testfileppc64attrs.s + +testfiles testfilearm testfileppc32attrs.o testfilesparc64attrs.o testfileppc64attrs.o testrun_compare ${abs_top_builddir}/src/readelf -A testfilearm <<\EOF @@ -79,4 +84,13 @@ Object attributes section [ 4] '.gnu.attributes' of 21 bytes at offset 0x40: GNU_Sparc_HWCAPS2: fjathplus,adp,mwait,xmont EOF +testrun_compare ${abs_top_builddir}/src/readelf -A testfileppc64attrs.o <<\EOF + +Object attributes section [ 4] '.gnu.attributes' of 16 bytes at offset 0x40: + Owner Size + gnu 15 + File: 7 + GNU_Power_ABI_FP: Single-precision hard float +EOF + exit 0 diff --git a/tests/testfileppc64attrs.o.bz2 b/tests/testfileppc64attrs.o.bz2 Binary files differnew file mode 100644 index 00000000..5af2ab6f --- /dev/null +++ b/tests/testfileppc64attrs.o.bz2 |
