This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch] Fix C++ no .eh_frame_hdr table will be created (PR 6893)
- From: Andreas Schwab <schwab at suse dot de>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: binutils at sourceware dot org
- Date: Wed, 17 Sep 2008 17:41:07 +0200
- Subject: Re: [patch] Fix C++ no .eh_frame_hdr table will be created (PR 6893)
- References: <20080916140807.GA14823@host0.dyn.jankratochvil.net>
Jan Kratochvil <jan.kratochvil@redhat.com> writes:
> +# Exclude non-ELF targets.
> +
> +if ![is_elf_format] {
> + return
> +}
> +
> +set build_tests_ld {
> + {"Build eh-group1.o"
> + "-r" ""
> + {eh-group1.s eh-group2.s} {} "eh-group.o"}
> +}
> +
> +run_ld_link_tests $build_tests_ld
> +
> +set testname "Link eh-group.o to eh-group"
> +if [ld_simple_link $ld "tmpdir/eh-group" "-e _start tmpdir/eh-group.o"] {
> + pass $testname
> +} else {
> + fail $testname
> +}
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ ld/testsuite/ld-elf/eh-group1.s 16 Sep 2008 13:28:54 -0000
> @@ -0,0 +1,6 @@
> + .section sect, "axG", @progbits, sectgroup, comdat
> + .global _start
> +_start:
> + .cfi_startproc
> + .skip 16
> + .cfi_endproc
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ ld/testsuite/ld-elf/eh-group2.s 16 Sep 2008 13:28:54 -0000
> @@ -0,0 +1,4 @@
> + .section sect, "axG", @progbits, sectgroup, comdat
> + .cfi_startproc
> + .skip 16
> + .cfi_endproc
This fails on ia64, because .cfi_* does not exist.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."