[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/20693] kernel build error on ppc64le
From: |
markus at trippelsdorf dot de |
Subject: |
[Bug gold/20693] kernel build error on ppc64le |
Date: |
Mon, 21 Nov 2016 20:47:08 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=20693
--- Comment #4 from Markus Trippelsdorf <markus at trippelsdorf dot de> ---
Here is an example:
address@hidden linux % objdump -h lib/lib.a | sed -ne
'/___ksymtab/{s/.*+/EXTERN(/;s/ .*/)/;p}' >|lib/.lib-ksyms.o.lds
address@hidden linux % cat lib/.lib-ksyms.o.lds
EXTERN(argv_free)
EXTERN(argv_split)
... <The actual list goes on>
address@hidden linux % ar rcsD lib/.lib_exports.o
address@hidden linux % ld.bfd -r -o lib/lib-ksyms.o -T
lib/.lib-ksyms.o.lds lib/.lib_exports.o
address@hidden linux % eu-readelf -a lib/lib-ksyms.o
ELF Header:
Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, little endian
Ident Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: REL (Relocatable file)
Machine: PowerPC 64-bit
Version: 1 (current)
Entry point address: 0
Start of program headers: 0 (bytes into file)
Start of section headers: 192 (bytes into file)
Flags:
Size of this header: 64 (bytes)
Size of program header entries: 0 (bytes)
Number of program headers entries: 0
Size of section header entries: 64 (bytes)
Number of section headers entries: 4
Section header string table index: 3
Section Headers:
[Nr] Name Type Addr Off Size ES
Flags Lk Inf Al
[ 0] NULL 0000000000000000 00000000 00000000 0
0 0 0
[ 1] .symtab SYMTAB 0000000000000000 00000040 00000048 24
2 1 8
[ 2] .strtab STRTAB 0000000000000000 00000088 00000016 0
0 0 1
[ 3] .shstrtab STRTAB 0000000000000000 0000009e 0000001b 0
0 0 1
Symbol table [ 1] '.symtab' contains 3 entries:
1 local symbol String table: [ 2] '.strtab'
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UNDEF
1: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UNDEF argv_split
2: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UNDEF argv_free
String section [2] '.strtab' contains 22 bytes at offset 0x88:
[ 0]
[ 1] argv_split
[ c] argv_free
--
You are receiving this mail because:
You are on the CC list for the bug.