[fedora-arm] Regenerating the cross stuff

Andy Green andy at warmcat.com
Tue Aug 3 11:07:22 UTC 2010


On 08/03/10 12:02, Somebody in the thread at some point said:

>> The original is 1560 the extracted is only 686, it just because it's
>> stripped though
>
> And stripping it by hand doesn't set the machine type to None?
>
> Can you re-try the whole build and see if it screws up again (or did
> you try this already)?

Yeah I built it a couple of times since this issue, I read a hint that 
the wrong %{__strip}, host one, might have been used, so I set __strip 
to /bin/true, didn't help.

And indeed -->

[agreen at otae libgcc]$ cp _thumb1_case_sqi.o test-_thumb1_case_sqi.o
[agreen at otae libgcc]$ armv5tel-redhat-linux-gnueabi-strip 
test-_thumb1_case_sqi.o
[agreen at otae libgcc]$ armv5tel-redhat-linux-gnueabi-readelf -a 
test-_thumb1_case_sqi.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:                              REL (Relocatable file)
   Machine:                           ARM
   Version:                           0x1
   Entry point address:               0x0
   Start of program headers:          0 (bytes into file)
   Start of section headers:          156 (bytes into file)
   Flags:                             0x5000000, Version5 EABI
   Size of this header:               52 (bytes)
   Size of program headers:           0 (bytes)
   Number of program headers:         0
   Size of section headers:           40 (bytes)
   Number of section headers:         7
   Section header string table index: 6

Section Headers:
   [Nr] Name              Type            Addr     Off    Size   ES Flg 
Lk Inf Al
   [ 0]                   NULL            00000000 000000 000000 00 
  0   0  0
   [ 1] .text             PROGBITS        00000000 000034 000014 00  AX 
  0   0  4
   [ 2] .data             PROGBITS        00000000 000048 000000 00  WA 
  0   0  1
   [ 3] .bss              NOBITS          00000000 000048 000000 00  WA 
  0   0  1
   [ 4] .note.GNU-stack   PROGBITS        00000000 000048 000000 00 
  0   0  1
   [ 5] .ARM.attributes   ARM_ATTRIBUTES  00000000 000048 000016 00 
  0   0  1
   [ 6] .shstrtab         STRTAB          00000000 00005e 00003c 00 
  0   0  1
Key to Flags:
   W (write), A (alloc), X (execute), M (merge), S (strings)
   I (info), L (link order), G (group), x (unknown)
   O (extra OS processing required) o (OS specific), p (processor specific)

There are no section groups in this file.

There are no program headers in this file.

There are no relocations in this file.

There are no unwind sections in this file.

No version information found in this file.
Attribute Section: aeabi
File Attributes
   Tag_CPU_arch: v4T
   Tag_THUMB_ISA_use: Thumb-1
   Tag_ABI_align8_preserved: Yes, except leaf SP

I'll look into how it makes the ar archive I guess.

-Andy


More information about the arm mailing list