public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Alan Modra <amodra@bigpond.net.au>
To: "Aaron W. LaFramboise" <aaron98wiridge9@aaronwl.com>
Cc: binutils@sources.redhat.com
Subject: Re: mainline ld on mingw32/pe is broken, returns 1 without error.
Date: Mon, 28 Jun 2004 06:26:00 -0000	[thread overview]
Message-ID: <20040628062618.GS3469@bubble.modra.org> (raw)
In-Reply-To: <40DFA9A4.3010303@aaronwl.com>

On Mon, Jun 28, 2004 at 12:16:20AM -0500, Aaron W. LaFramboise wrote:
> (gdb) p *section
> $2 = {name = 0x4b9f45 ".stabstr", id = 21, index = 5, next = 0x0,
>   flags = 66064, user_set_vma = 0, linker_mark = 1, linker_has_input = 0,
>   gc_mark = 0, segment_mark = 0, sec_info_type = 0, use_rela_p = 0,
>   has_tls_reloc = 0, has_gp_reloc = 0, need_finalize_relax = 0,
>   reloc_done = 0, vma = 0, lma = 0, size = 480930, rawsize = 0,
>   output_offset = 0, output_section = 0x3de92c, 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,
>   kept_section = 0x0, moving_line_filepos = 0, target_index = 0,
>   used_by_bfd = 0x0, constructor_chain = 0x0, owner = 0x3df0b8,
>   symbol = 0x6d6ae8, symbol_ptr_ptr = 0x6d7768, link_order_head = 0x0,
>   link_order_tail = 0x0}

Sigh.  This has to be the stabstr section created at stabs.c:248 (if
the section came from an input file, it wouldn't have filepos == 0).

It looks like the linker relies on raw size being zero for these
sections.  ie. places where I do o->rawsize ? o->rawsize : o->size
are broken.  The fix will be to set rawsize for all input sections,
and remove all the places I test rawsize.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

  parent reply	other threads:[~2004-06-28  6:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-27  1:29 Aaron W. LaFramboise
2004-06-27  4:06 ` Alan Modra
2004-06-27  4:32   ` Aaron W. LaFramboise
2004-06-27 11:49     ` Alan Modra
2004-06-28  5:01       ` Aaron W. LaFramboise
     [not found]         ` <20040628051054.GR3469@bubble.modra.org>
     [not found]           ` <40DFA9A4.3010303@aaronwl.com>
2004-06-28  6:26             ` Alan Modra [this message]
2004-06-28 13:34               ` Alan Modra
2004-06-28 22:14                 ` Aaron W. LaFramboise

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=20040628062618.GS3469@bubble.modra.org \
    --to=amodra@bigpond.net.au \
    --cc=aaron98wiridge9@aaronwl.com \
    --cc=binutils@sources.redhat.com \
    /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).