This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld-elf/header failed for Linux/ia64


Hi Nathan,

The issue is .text section on ia64 is aligned at 16byte, not 4 byte.
Instead of

Section Headers:
  [Nr] Name              Type             Address           Offset
       Size              EntSize          Flags  Link  Info  Align
  [ 0]                   NULL             0000000000000000  00000000
       0000000000000000  0000000000000000           0     0     0
  [ 1] .text             PROGBITS         0000000000010078  00000078
       000000000000ffac  0000000000000000  AX       0     0     4

I got

Section Headers:
  [Nr] Name              Type             Address           Offset
       Size              EntSize          Flags  Link  Info  Align
  [ 0]                   NULL             0000000000000000  00000000
       0000000000000000  0000000000000000           0     0     0
  [ 1] .text             PROGBITS         0000000000010080  00000080
       000000000000ffac  0000000000000000  AX       0     0     16

I will adjust your testcase.


H.J.
---
On Tue, Jan 16, 2007 at 07:08:40AM -0800, H. J. Lu wrote:
> Hi Nathan,
> 
> Can you take a look at this?
> 
> Thanks.
> 
> 
> H.J.
> ----
> On Fri, Jan 12, 2007 at 10:13:17AM -0800, H. J. Lu wrote:
> > Hi Nathan,
> > 
> > Could you please fix it?
> > 
> > regexp "^         filesz 0x0*001002[48] memsz 0x0*001002[48] flags rwx$"
> > line   "         filesz 0x0000000000010030 memsz 0x0000000000010030 flags rwx"
> > regexp_diff match failure 
> > regexp "^  0 .text         0*000ffac  0*001007[48]  0*001007[48] 0*000007[48]  2...  CONTENTS, ALLOC, LOAD, READONLY, CODE$"
> > line   "  0 .text         0000ffac  0000000000010080  0000000000010080 00000080  2**4  CONTENTS, ALLOC, LOAD, READONLY, CODE"
> > regexp_diff match failure 
> > regexp "^  1 .data         0*0000004  0*002002[04]  0*002002[04] 0*001002[04]  2...  CONTENTS, ALLOC, LOAD, DATA$"
> > line   "  1 .data         00000004  000000000002002c  000000000002002c 0001002c  2**2  CONTENTS, ALLOC, LOAD, DATA"
> > FAIL: ld-elf/header
> > 
> > Thanks.
> > 
> > 
> > H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]