From: "H. J. Lu" <hjl@lucon.org>
To: John David Anglin <dave@hiauly1.hia.nrc.ca>
Cc: Alan Modra <amodra@bigpond.net.au>, binutils@sources.redhat.com
Subject: Re: SIGSEGV in ld at elflink.h:5500
Date: Tue, 16 Jul 2002 14:17:00 -0000 [thread overview]
Message-ID: <20020716140422.B26588@lucon.org> (raw)
In-Reply-To: <200207161916.g6GJGjoc026412@hiauly1.hia.nrc.ca>; from dave@hiauly1.hia.nrc.ca on Tue, Jul 16, 2002 at 03:16:44PM -0400
On Tue, Jul 16, 2002 at 03:16:44PM -0400, John David Anglin wrote:
> I started trying to get dwarf2 eh working on hppa64-hp-hpux. I am
> seeing a segmentation fault in gld linking the libstdc++-v3 shared
> library. This is the section data which causes the fault:
>
> (gdb) p *s
> $2 = {name = 0x8000000000240035 ".gnu.linkonce.t._ZTv0_n24_NSdD1Ev", id = 478,
> index = 46, next = 0x8000000000246900, flags = 1049143, user_set_vma = 1,
> reloc_done = 0, linker_mark = 0, linker_has_input = 0, gc_mark = 0,
> segment_mark = 0, vma = 0, lma = 0, _cooked_size = 56, _raw_size = 56,
> output_offset = 0, output_section = 0x8000000000005340, alignment_power = 3,
> relocation = 0x0, orelocation = 0x0, reloc_count = 1, filepos = 127080,
> rel_filepos = 204960, line_filepos = 0, userdata = 0x0, contents = 0x0,
> lineno = 0x0, lineno_count = 0, entsize = 0, comdat = 0x0,
> moving_line_filepos = 0, target_index = 0, used_by_bfd = 0x8000000000247698,
> constructor_chain = 0x0, owner = 0x80000000000d7998,
> symbol = 0x8000000000247638, symbol_ptr_ptr = 0x80000000002468c8,
> link_order_head = 0x0, link_order_tail = 0x0}
> (gdb) p *s->output_section
> $3 = {name = 0x40000000000b0550 "*ABS*", id = 2, index = 0, next = 0x0,
> flags = 0, user_set_vma = 0, reloc_done = 0, linker_mark = 0,
> linker_has_input = 0, gc_mark = 1, segment_mark = 0, vma = 0, lma = 0,
> _cooked_size = 0, _raw_size = 0, output_offset = 0,
> output_section = 0x8000000000005340, alignment_power = 0, relocation = 0x0,
> orelocation = 0x0, reloc_count = 0, filepos = 0, rel_filepos = 0,
> line_filepos = 0, userdata = 0x0, contents = 0x0, lineno = 0x0,
> lineno_count = 0, entsize = 0, comdat = 0x0, moving_line_filepos = 0,
> target_index = 0, used_by_bfd = 0x0, constructor_chain = 0x0, owner = 0x0,
> symbol = 0x80000000000050d8, symbol_ptr_ptr = 0x8000000000005338,
> link_order_head = 0x0, link_order_tail = 0x0}
>
> This is the code that faults:
>
> sym.st_shndx =
> elf_section_data (s->output_section)->this_idx;
>
> The "elf_section_data" macro returns a null pointer.
>
> Anybody got any ideas on what's causing this?
Sounds similar to
http://sources.redhat.com/ml/binutils/2002-06/msg00047.html
I had to make
http://sources.redhat.com/ml/binutils/2002-06/msg00111.html
H.J.
next prev parent reply other threads:[~2002-07-16 21:04 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20020716023427.GD30362@bubble.sa.bigpond.net.au>
2002-07-16 14:04 ` John David Anglin
2002-07-16 14:17 ` H. J. Lu [this message]
2002-07-16 17:17 ` Alan Modra
2002-07-16 17:29 ` John David Anglin
[not found] <no.id>
2002-07-16 17:43 ` John David Anglin
2002-07-16 18:51 ` Alan Modra
2002-07-16 19:34 ` John David Anglin
2002-07-16 21:39 ` Alan Modra
2002-07-16 21:49 ` John David Anglin
2002-07-16 22:46 ` Alan Modra
2002-07-17 0:12 ` John David Anglin
2002-07-17 20:35 ` John David Anglin
2002-07-17 23:07 ` Alan Modra
2002-07-17 23:42 ` John David Anglin
2002-07-18 0:14 ` Alan Modra
2002-07-18 3:11 ` John David Anglin
[not found] <20020724052338.GI26054@bubble.sa.bigpond.net.au>
[not found] ` <200207250422.g6P4Mrrt007253@hiauly1.hia.nrc.ca>
2002-07-25 0:44 ` Alan Modra
2002-07-26 11:57 ` John David Anglin
2002-07-26 18:31 ` Alan Modra
2002-07-26 20:58 ` John David Anglin
2002-07-26 21:59 ` H. J. Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020716140422.B26588@lucon.org \
--to=hjl@lucon.org \
--cc=amodra@bigpond.net.au \
--cc=binutils@sources.redhat.com \
--cc=dave@hiauly1.hia.nrc.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).