public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <ian@cygnus.com>
To: arnej@pvv.unit.no
Cc: gas2@cygnus.com
Subject: Re: patches to add mips-dec-netbsd configuration
Date: Mon, 18 Sep 1995 11:48:00 -0000	[thread overview]
Message-ID: <199509181847.OAA18721@sanguine.cygnus.com> (raw)
In-Reply-To: <9509180901.AA17584@datter.pvv.unit.no>

   From: "Arne H. Juul" <arnej@pvv.unit.no>
   Date: Mon, 18 Sep 1995 11:01:55 +0200

   Most of the patches only add recognizing the name to be handled
   like mips*el-*-elf.

I checked in versions of these patches.

   However, there is one patch to elf.c that modifies ld behaviour on
   linking: don't merge together readonly and writable object sections
   into one program segment.

It seems to me that this patch could cause trouble.  When the linker
script uses SIZEOF_HEADERS, as the default linker script does, the ELF
linker computes the program header size before it knows the final
positions of the sections.  That means that it must guess at the total
number of program segments which will be required.  Your patch will
cause the linker to sometimes allocate an additional program segment,
and in some cases that will not fit, causing a fatal error.

The right fix for this is rather complex: the linker must be able to
relax the final positions of the segments based on the number of
program header segments which are required, and vice-versa.

Ian


      reply	other threads:[~1995-09-18 11:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-09-18  2:02 Arne H. Juul
1995-09-18 11:48 ` Ian Lance Taylor [this message]

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=199509181847.OAA18721@sanguine.cygnus.com \
    --to=ian@cygnus.com \
    --cc=arnej@pvv.unit.no \
    --cc=gas2@cygnus.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).