https://sourceware.org/bugzilla/show_bug.cgi?id=33923
Bug ID: 33923
Summary: eu-elflint does not recognise SHT_AARCH64_ATTRIBUTES
(0x70000003) in its AArch64 backend
Product: elfutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: tools
Assignee: unassigned at sourceware dot org
Reporter: deepesh.varatharajan at windriver dot com
CC: elfutils-devel at sourceware dot org
Target Milestone: ---
Created attachment 16629
--> https://sourceware.org/bugzilla/attachment.cgi?id=16629&action=edit
test.s
Environment:
Architecture: AArch64
elfutils: 0.194
binutils: 2.46
Root Cause(suspected):
The following commit in binutils 2.46 introduces the addition of:
#define elf_backend_obj_attrs_section_type SHT_AARCH64_ATTRIBUTES in the
"bfd/elfnn-aarch64.c" file.
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=b6d4f642eb79
With binutils 2.46, running ptest for elfutils with a custom target in a
cross-compiled environment results in the following error:
section [35] '.ARM.attributes' has unsupported type 1879048195
*** failure in /usr/lib/elfutils/ptest/tests/..//src/elflint --quiet --gnu-ld
/usr/lib/elfutils/ptest/tests/..//src/addr2line
Steps to reproduce:
On an arm64 host,
refer the attached sample assembly code test.s
1) Compile with "as -o test.o test.s"
2) Run "elflint --quiet --gnu-ld test.o" to reproduce the following error:
# section [ 4] '.ARM.attributes' has unsupported type 1879048195
# exit: 1
Additional information:
Output of "readelf -S test.o | grep -i arm"
# [ 4] .ARM.attributes AARCH64_ATTRIBU (type 0x70000003)
Output of "readelf -A test.o"
# Subsections:
# - Name: aeabi_feature_and_bits
# Values:
# Tag_Feature_BTI: 1
# Tag_Feature_PAC: 1
# Tag_Feature_GCS: 1
--
You are receiving this mail because:
You are on the CC list for the bug.