public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] Buggy unwind tables in user space
@ 2001-05-19  3:45 Keith Owens
  2001-05-19 16:04 ` Andreas Schwab
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Keith Owens @ 2001-05-19  3:45 UTC (permalink / raw)
  To: linux-ia64

Most IA64 distributions contain a bad version of crtn.o.  Executables
or shared libraries built with this file have invalid unwind data.

SuSe Linux 7.1a, TurboLinux 000828, TL 010307 (beta3) and Redhat 7.0.90
all have a buggy version of crtn.o.  Redhat 7.0.98 (Wolverine) has a
clean version of crtn.o, but if any Wolverine binaries were compiled
against the old crtn.o then they will be bad as well.

# objdump -r -j .IA_64.unwind /usr/lib/crt?.o

/usr/lib/crt1.o:     file format elf64-ia64-little

RELOCATION RECORDS FOR [.IA_64.unwind]:
OFFSET           TYPE              VALUE 
0000000000000000 SEGREL64LSB       .text
0000000000000008 SEGREL64LSB       .text+0x0000000000000080
0000000000000010 SEGREL64LSB       .IA_64.unwind_info

/usr/lib/crti.o:     file format elf64-ia64-little

RELOCATION RECORDS FOR [.IA_64.unwind]:
OFFSET           TYPE              VALUE 
0000000000000000 SEGREL64LSB       .init
0000000000000008 SEGREL64LSB       .init+0x0000000000000060
0000000000000010 SEGREL64LSB       .IA_64.unwind_info
0000000000000018 SEGREL64LSB       .fini
0000000000000020 SEGREL64LSB       .fini+0x0000000000000020
0000000000000028 SEGREL64LSB       .IA_64.unwind_info+0x0000000000000010

/usr/lib/crtn.o:     file format elf64-ia64-little

RELOCATION RECORDS FOR [.IA_64.unwind]:
OFFSET           TYPE              VALUE 
0000000000000008 SEGREL64LSB       .init+0x0000000000000020
0000000000000010 SEGREL64LSB       .IA_64.unwind_info
0000000000000020 SEGREL64LSB       .fini+0x0000000000000020
0000000000000028 SEGREL64LSB       .IA_64.unwind_info+0x0000000000000010

crtn.o relocation records are wrong.  Offsets 0 and 18 have no
relocation entries so they end up as zero.  Typical executable dump

Hex dump of section '.IA_64.unwind':
  0x4000000000000990 00000000 00000400 00000000 00000000
  0x40000000000009a0 00000000 00000000 00000000 00000900
  0x40000000000009b0 00000000 00000910 00000000 00000860
  0x40000000000009c0 00000000 00000350 00000000 000002f0
  0x40000000000009d0 00000000 000004a0 00000000 00000880

The first three entries are
  start   end     info
  0x0000  0x0400  0x0900 - bad
  0x0000  0x0860  0x0910 - bad
  0x02f0  0x0350  0x0880 - good



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Linux-ia64] Buggy unwind tables in user space
  2001-05-19  3:45 [Linux-ia64] Buggy unwind tables in user space Keith Owens
@ 2001-05-19 16:04 ` Andreas Schwab
  2001-05-21  2:03 ` Keith Owens
  2001-05-21 23:12 ` Jim Wilson
  2 siblings, 0 replies; 4+ messages in thread
From: Andreas Schwab @ 2001-05-19 16:04 UTC (permalink / raw)
  To: linux-ia64

Keith Owens <kaos@ocs.com.au> writes:

|> Most IA64 distributions contain a bad version of crtn.o.  Executables
|> or shared libraries built with this file have invalid unwind data.
|> 
|> SuSe Linux 7.1a, TurboLinux 000828, TL 010307 (beta3) and Redhat 7.0.90
|> all have a buggy version of crtn.o.  Redhat 7.0.98 (Wolverine) has a
|> clean version of crtn.o, but if any Wolverine binaries were compiled
|> against the old crtn.o then they will be bad as well.

SuSE IA64 7.2-beta has this already fixed, and everything is recompiled,
so no invalid unwind data should be left.

Andreas.

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Linux-ia64] Buggy unwind tables in user space
  2001-05-19  3:45 [Linux-ia64] Buggy unwind tables in user space Keith Owens
  2001-05-19 16:04 ` Andreas Schwab
@ 2001-05-21  2:03 ` Keith Owens
  2001-05-21 23:12 ` Jim Wilson
  2 siblings, 0 replies; 4+ messages in thread
From: Keith Owens @ 2001-05-21  2:03 UTC (permalink / raw)
  To: linux-ia64

On Sat, 19 May 2001 13:45:27 +1000, 
Keith Owens <kaos@ocs.com.au> wrote:
>Most IA64 distributions contain a bad version of crtn.o.  Executables
>or shared libraries built with this file have invalid unwind data.
>
>SuSe Linux 7.1a, TurboLinux 000828, TL 010307 (beta3) and Redhat 7.0.90
>all have a buggy version of crtn.o.  Redhat 7.0.98 (Wolverine) has a
>clean version of crtn.o, but if any Wolverine binaries were compiled
>against the old crtn.o then they will be bad as well.

Correction.  Redhat 7.0.98 (Wolverine) also has a buggy version of
crtn.o.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Linux-ia64] Buggy unwind tables in user space
  2001-05-19  3:45 [Linux-ia64] Buggy unwind tables in user space Keith Owens
  2001-05-19 16:04 ` Andreas Schwab
  2001-05-21  2:03 ` Keith Owens
@ 2001-05-21 23:12 ` Jim Wilson
  2 siblings, 0 replies; 4+ messages in thread
From: Jim Wilson @ 2001-05-21 23:12 UTC (permalink / raw)
  To: linux-ia64

>Most IA64 distributions contain a bad version of crtn.o.  Executables
>or shared libraries built with this file have invalid unwind data.

I'm assuming this is a glibc problem, and that there is nothing I need to do.

Glibc by default creates crti/crtn by compiling one C file, and then spliting
the output into two assembly language files.  This works on systems with
dumb assemblers.  It does not work on IA-64.  This was changed in August 2000.
crti/crtn are now generated from IA-64 assembly.

>Correction.  Redhat 7.0.98 (Wolverine) also has a buggy version of
>crtn.o.

You will have to elaborate.  My copy here has no unwind info, and hence the
unwind info can't possibly be missing relocations.

If your complaint is that there is no unwind info, then it needs to be
added to the assembly code in glibc.  See libc/sysdeps/ia64/elf/initfini.c.

Jim


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-05-21 23:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-19  3:45 [Linux-ia64] Buggy unwind tables in user space Keith Owens
2001-05-19 16:04 ` Andreas Schwab
2001-05-21  2:03 ` Keith Owens
2001-05-21 23:12 ` Jim Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox