70e99720f9
different architecture tags. Add a test case to make sure that this works, and update readelf so that it will not seg-fault when trying to display the attributes of binaries with invalid architecture tags. * elf32-arm.c (elf32_arm_merge_eabi_attributes): Return false if failed to merge. * ld-arm/attr-merge-arch-2.d: New test case. * ld-arm/attr-merge-arch-2a.s: New test case source file. * ld-arm/attr-merge-arch-2b.s: Likewise. * ld-arm/arm-elf.exp: Run new test case. * readelf.c (display_arm_attribute): Use unsigned int type for tag, val and type variables.
8 lines
190 B
ArmAsm
8 lines
190 B
ArmAsm
.eabi_attribute 6, 0 @Tag_CPU_arch, 0 means pre-v4.
|
|
.file "f.c"
|
|
.text
|
|
.align 2
|
|
.global foo
|
|
.type foo, %function
|
|
foo:
|
|
bx lr
|