[Bug go/80964] New: cross-gotools are not executable on host system
bernd.edlinger at hotmail dot de
gcc-bugzilla@gcc.gnu.org
Sat Jun 3 17:05:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80964
Bug ID: 80964
Summary: cross-gotools are not executable on host system
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: go
Assignee: ian at airs dot com
Reporter: bernd.edlinger at hotmail dot de
CC: cmang at google dot com
Target Milestone: ---
I don't know if that is a bug or a feature,
but I use a build spec like this one:
../gcc-trunk/configure --prefix=/home/ed/gnu/arm-linux-gnueabihf-linux64
--target=arm-linux-gnueabihf --enable-languages=all --with-arch=armv7-a
--with-tune=cortex-a9 --with-fpu=vfpv3-d16 --with-float=hard
Note: Recently "all" was changed to include go as well.
Everything builds cleanly, except that the executables
bin/arm-linux-gnueabihf-go and bin/arm-linux-gnueabihf-gofmt
are built for the target system and not for the host, as every other
program in the bin folder:
bin/arm-linux-gnueabihf-readelf -h bin/arm-linux-gnueabihf-go
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: ARM
Version: 0x1
Entry point address: 0x1a731
Start of program headers: 52 (bytes into file)
Start of section headers: 1534068 (bytes into file)
Flags: 0x5000400, Version5 EABI, hard-float ABI
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 9
Size of section headers: 40 (bytes)
Number of section headers: 39
Section header string table index: 38
bin/arm-linux-gnueabihf-readelf -h bin/arm-linux-gnueabihf-gofmt
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: ARM
Version: 0x1
Entry point address: 0x147f1
Start of program headers: 52 (bytes into file)
Start of section headers: 185156 (bytes into file)
Flags: 0x5000400, Version5 EABI, hard-float ABI
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 9
Size of section headers: 40 (bytes)
Number of section headers: 39
Section header string table index: 38
bin/arm-linux-gnueabihf-readelf -h bin/arm-linux-gnueabihf-gccgo
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
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: Advanced Micro Devices X86-64
Version: 0x1
Entry point address: 0x403e05
Start of program headers: 64 (bytes into file)
Start of section headers: 5842128 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 10
Size of section headers: 64 (bytes)
Number of section headers: 39
Section header string table index: 38
More information about the Gcc-bugs
mailing list