Host strip corrupts cross-built armel archives
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro Binutils |
Won't Fix
|
Medium
|
Unassigned | ||
binutils (Ubuntu) |
Won't Fix
|
Medium
|
Unassigned | ||
Maverick |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
Binary package hint: binutils
$ ls -lrt /var/cache/
-rw-r--r-- 1 root root 2204364 2010-07-11 09:05 /var/cache/
-rw-r--r-- 1 root root 6163090 2010-07-20 08:38 /var/cache/
$ strip --version
GNU strip (GNU Binutils for Ubuntu) 2.20.51-
$ ls -lrt /var/cache/
-rw-r--r-- 1 root root 6163090 2010-07-20 08:38 binutils-
-rw-r--r-- 1 root root 121718 2010-08-04 11:14 gcc-4.4-
-rw-r--r-- 1 root root 3548230 2010-08-04 11:15 cpp-4.4-
-rw-r--r-- 1 root root 704076 2010-08-04 11:15 gcc-4.4-
-rw-r--r-- 1 root root 119156 2010-08-04 11:30 gcc-4.5-
cat /etc/apt/
deb mirror:
deb-src mirror:
deb http://
deb-src http://
$ arm-linux-
arm-linux-
$ cat test.c
int main (int argc, char** argv)
{
return 0;
}
$ arm-linux-
$ ls -l test.o
-rwxr-xr-x 1 chroot-user chroot-user 4693 2010-08-10 08:25 test.o
$ arm-linux-
$ ls -l my.a
-rw-r--r-- 1 chroot-user chroot-user 5072 2010-08-10 08:26 my.a
$ readelf -h my.a
File: my.a(test.o)
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: 0x82b9
Start of program headers: 52 (bytes into file)
Start of section headers: 1644 (bytes into file)
Flags: 0x5000002, has entry point, Version5 EABI
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 8
Size of section headers: 40 (bytes)
Number of section headers: 29
Section header string table index: 26
$ strip my.a
$ readelf -h my.a
File: my.a(test.o)
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: None ** Changed **
Version: 0x1
Entry point address: 0x82b9
Start of program headers: 52 (bytes into file)
Start of section headers: 1628 (bytes into file)
Flags: 0x5000002
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 8
Size of section headers: 40 (bytes)
Number of section headers: 27
Section header string table index: 26
$ ls -l my.a
-rw-r--r-- 1 chroot-user chroot-user 2840 2010-08-10 08:27 my.a
binutils-
$ sudo apt-get install binutils-multiarch
......
$ arm-linux-
$ arm-linux-
$ strip my.a
$ readelf -h my.a
File: my.a(test.o)
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: 0x82b9
Start of program headers: 52 (bytes into file)
Start of section headers: 1628 (bytes into file)
Flags: 0x5000002, has entry point, Version5 EABI
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 8
Size of section headers: 40 (bytes)
Number of section headers: 27
Section header string table index: 26
$ ls -l my.a
-rw-r--r-- 1 chroot-user chroot-user 2840 2010-08-10 08:44 my.a
Debian http://
Changed in binutils (Ubuntu Maverick): | |
milestone: | none → ubuntu-10.10 |
tags: | added: linaro |
tags: | added: armel toolchain |
summary: |
- strip corrupts armel archives + Host strip corrupts cross-built armel archives |
Changed in binutils (Ubuntu Maverick): | |
milestone: | ubuntu-10.10 → maverick-updates |
tags: | added: arm-porting-queue |
Changed in binutils-linaro: | |
status: | New → Triaged |
Changed in binutils (Ubuntu Maverick): | |
status: | New → Won't Fix |
Changed in binutils-linaro: | |
status: | Triaged → Won't Fix |
AIUI this is a blocker for cross-toolchan work in Linaro, so setting an appropriate milestone target.
Marcin, is this something you can look into?