fedora 的 annobin 是不是不支持 mips64el ?

RT
我之前的帖子,里面有说过 strip 提示 [.gnu.build.attributes]: corrupt GNU build attribute note: bad description size: Bad value
 
我现在重新从 LFS 编译 fedora 30 。又出现了这个问题。
 
之前 LFS 阶段都正常,但是现在编译的程序,就又都有错误的信息了。
不过这次好的是 strip 不报错可以运行了……之前 binutils 直接报错导致很多软件自己做 strip 都失败而编译不成功。
 
随便编译了一个库。readelf -nW 可以看到有报错信息,但是 strip 依然可以工作,而且还能让报错的 note 内容产生变化。这到底是啥情况?
[root@localhost ttttt]# file ~/rpmbuild/BUILD/zlib-1.2.11/libz.so.1.2.11
/root/rpmbuild/BUILD/zlib-1.2.11/libz.so.1.2.11: ELF 64-bit LSB shared object, MIPS, MIPS64 rel2 version 1 (SYSV), dynamically linked, BuildID[sha1]=bcc4ec614cc44a288c9ae10fd3eadb25cdc5758a, with debug_info, not stripped, too many notes (256)
[root@localhost ttttt]# readelf -nW ~/rpmbuild/BUILD/zlib-1.2.11/libz.so.1.2.11

Displaying notes found in: .note.gnu.build-id
Owner Data size Description
GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID bitstring) Build ID: bcc4ec614cc44a288c9ae10fd3eadb25cdc5758a

Displaying notes found in: .gnu.build.attributes
Owner Data size Description
GA$<version>3a1 0x00000010 OPEN Applies to region from 0x31b000000000 to 0x800000000
3a1 0x00000100 Unknown note type: (0x01244147) description data: 08 00 00 00 10 00 00 00 00 01 00 00 47 41 24 01 33 61 31 00 ffffffc0 36 01 00 00 00 00 00 ffffffd8 36 01 00 00 00 00 00 08 00 00 00 10 00 00 00 00 01 00 00 47 41 24 01 33 61 31 00 ffffffb0 31 00 00 00 00 00 00 ffffffc0 32 00 00 00 00 00 00 0a 00 00 00 10 00 00 00 00 01 00 00 47 41 24 01 33 70 38 37 31 00 00 00 ffffffc0 32 00 00 00 00 00 00 6c 38 00 00 00 00 00 00 17 00 00 00 00 00 00 00 00 01 00 00 47 41 24 05 67 63 63 20 39 2e 30 2e 31 20 32 30 31 39 30 32 32 37 00 00 0a 00 00 00 00 00 00 00 00 01 00 00 47 41 2a 47 4f 57 00 2a 45 00 00 00 06 00 00 00 00 00 00 00 00 01 00 00 47 41 2a 02 03 00 00 00 0f 00 00 00 00 00 00 00 00 01 00 00 47 41 21 73 74 61 63 6b 5f 63 6c 61 73 68 00 00 13 00 00 00 00 00 00 00 00 01 00 00 47 41 2a 63 66 5f 70 72 6f 74 65 63 74 69 6f 6e 00 01 00 00 0d 00 00 00
(NONE) 0x00000100 Unknown note type: (0x462a4147) description data: 46 59 00 02 00 00 00 00 16 00 00 00 00 00 00 00 00 01 00 00 47 41 2b 47 4c 49 42 43 58 58 5f 41 53 53 45 52 54 49 4f 4e 53 00 00 00 06 00 00 00 00 00 00 00 00 01 00 00 47 41 2a 07 01 00 00 00 05 00 00 00 00 00 00 00 00 01 00 00 47 41 21 08 00 00 00 00 16 00 00 00 00 00 00 00 00 01 00 00 47 41 2b 6f 6d 69 74 5f 66 72 61 6d 65 5f 70 6f 69 6e 74 65 72 00 00 00 0a 00 00 00 10 00 00 00 00 01 00 00 47 41 24 01 33 68 38 37 31 00 00 00 ffffffb0 31 00 00 00 00 00 00 ffffffb0 31 00 00 00 00 00 00 17 00 00 00 00 00 00 00 00 01 00 00 47 41 24 05 67 63 63 20 39 2e 30 2e 31 20 32 30 31 39 30 32 32 37 00 00 0a 00 00 00 00 00 00 00 00 01 00 00 47 41 2a 47 4f 57 00 2a 45 00 00 00 06 00 00 00 00 00 00 00 00 01 00 00 47 41 2a 02 03 00 00 00 0f 00 00 00 00 00 00 00 00 01 00 00 47 41 21 73
readelf: /root/rpmbuild/BUILD/zlib-1.2.11/libz.so.1.2.11: Warning: note with invalid namesz and/or descsz found at offset 0x258
readelf: /root/rpmbuild/BUILD/zlib-1.2.11/libz.so.1.2.11: Warning: type: 0x6873, namesize: 0x6b636174, descsize: 0x616c635f, alignment: 8
[root@localhost ttttt]# strip --strip-unneeded ~/rpmbuild/BUILD/zlib-1.2.11/libz.so.1.2.11
[root@localhost ttttt]# file ~/rpmbuild/BUILD/zlib-1.2.11/libz.so.1.2.11
/root/rpmbuild/BUILD/zlib-1.2.11/libz.so.1.2.11: ELF 64-bit LSB shared object, MIPS, MIPS64 rel2 version 1 (SYSV), dynamically linked, BuildID[sha1]=bcc4ec614cc44a288c9ae10fd3eadb25cdc5758a, stripped
[root@localhost ttttt]# readelf -nW ~/rpmbuild/BUILD/zlib-1.2.11/libz.so.1.2.11

Displaying notes found in: .note.gnu.build-id
Owner Data size Description
GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID bitstring) Build ID: bcc4ec614cc44a288c9ae10fd3eadb25cdc5758a

Displaying notes found in: .gnu.build.attributes
Owner Data size Description
GA$<version>3a1 0x00000010 func Applies to region from 0x31b000000000 to 0x800000000
3a1 0x00000101 Unknown note type: (0x01244147) description data: 08 00 00 00 10 00 00 00 01 01 00 00 47 41 24 01 33 61 31 00 ffffffb0 31 00 00 00 00 00 00 ffffffc0 32 00 00 00 00 00 00 0c 00 00 00 10 00 00 00 01 01 00 00 47 41 24 01 33 70 38 37 31 00 00 00 ffffffc0 32 00 00 00 00 00 00 6c 38 00 00 00 00 00 00 18 00 00 00 10 00 00 00 00 01 00 00 47 41 24 05 67 63 63 20 39 2e 30 2e 31 20 32 30 31 39 30 32 32 37 00 00 ffffffc0 32 00 00 00 00 00 00 ffffff98 35 01 00 00 00 00 00 0c 00 00 00 10 00 00 00 01 01 00 00 47 41 2a 47 4f 57 00 2a 45 00 00 00 ffffffc0 32 00 00 00 00 00 00 6c 38 00 00 00 00 00 00 08 00 00 00 10 00 00 00 00 01 00 00 47 41 2a 02 03 00 00 00 ffffffc0 32 00 00 00 00 00 00 ffffff98 35 01 00 00 00 00 00 10 00 00 00 00 00 00 00 00 01 00 00 47 41 21 73 74 61 63 6b 5f 63 6c 61 73 68 00 00 14 00 00 00 00 00 00 00 00 01 00 00 47 41 2a 63 66 5f 70 72 6f 74 65 63 74
GA*FORTIFY:0x2 0x00000000 OPEN Applies to region from 0
LIBCXX_ASSERTION 0x00000101 Unknown note type: (0x472b4147) description data: ffffffc0 32 00 00 00 00 00 00 6c 38 00 00 00 00 00 00 08 00 00 00 10 00 00 00 00 01 00 00 47 41 2a 07 01 00 00 00 ffffffc0 32 00 00 00 00 00 00 ffffff98 35 01 00 00 00 00 00 08 00 00 00 00 00 00 00 00 01 00 00 47 41 21 08 00 00 00 00 18 00 00 00 00 00 00 00 00 01 00 00 47 41 2b 6f 6d 69 74 5f 66 72 61 6d 65 5f 70 6f 69 6e 74 65 72 00 00 00 0c 00 00 00 10 00 00 00 01 01 00 00 47 41 24 01 33 70 38 37 31 00 00 00 70 38 00 00 00 00 00 00 ffffff98 35 01 00 00 00 00 00 0c 00 00 00 10 00 00 00 01 01 00 00 47 41 2a 47 4f 57 00 2a 45 00 00 00 70 38 00 00 00 00 00 00 04 40 00 00 00 00 00 00 18 00 00 00 00 00 00 00 01 01 00 00 47 41 2b 47 4c 49 42 43 58 58 5f 41 53 53 45 52 54 49 4f 4e 53 00 00 00 0c 00 00 00 10 00 00 00 01 01 00 00 47 41 2a 47 4f 57 00 2a 45 00 00 00 10 40 00 00 00 00 00 00 54
GA+GLIBCXX_ASSERTIONS:true 0x00000000 func Applies to region from 0x31b000000000
OW 0x00000101 Unknown note type: (0x472a4147) description data: 00 00 00 00 18 00 00 00 00 00 00 00 01 01 00 00 47 41 2b 47 4c 49 42 43 58 58 5f 41 53 53 45 52 54 49 4f 4e 53 00 00 00 0c 00 00 00 10 00 00 00 01 01 00 00 47 41 2a 47 4f 57 00 2a 45 00 00 00 00 ffffff9a 00 00 00 00 00 00 00 ffffffa1 00 00 00 00 00 00 18 00 00 00 00 00 00 00 01 01 00 00 47 41 2b 47 4c 49 42 43 58 58 5f 41 53 53 45 52 54 49 4f 4e 53 00 00 00 0c 00 00 00 10 00 00 00 01 01 00 00 47 41 2a 47 4f 57 00 2a 45 00 00 00 00 ffffffa1 00 00 00 00 00 00 ffffff80 ffffffd7 00 00 00 00 00 00 18 00 00 00 00 00 00 00 01 01 00 00 47 41 2b 47 4c 49 42 43 58 58 5f 41 53 53 45 52 54 49 4f 4e 53 00 00 00 0c 00 00 00 10 00 00 00 01 01 00 00 47 41 2a 47 4f 57 00 2a 45 00 00 00 ffffff80 ffffffd7 00 00 00 00 00 00 70 ffffffdd 00 00 00 00 00 00 18 00 00 00 00 00 00 00 01 01 00 00 47 41 2b 47 4c 49 42 43 58 58 5f 41 53
^A^A 0x0000000c Unknown note type: (0x00000010) description data: 4f 57 00 2a 45 00 00 00 70 fffffffe 00 00
readelf: /root/rpmbuild/BUILD/zlib-1.2.11/libz.so.1.2.11: Warning: note with invalid namesz and/or descsz found at offset 0x458
readelf: /root/rpmbuild/BUILD/zlib-1.2.11/libz.so.1.2.11: Warning: type: 0x18, namesize: 0x0000ff24, descsize: 0x00000000, alignment: 8
已邀请:

要回复问题请先登录注册