public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Artur Skawina <skawina@geocities.com>
To: Jamie Lokier <egcs@tantalophile.demon.co.uk>
Cc: Andrew Morton <andrewm@uow.edu.au>, gcc@gcc.gnu.org
Subject: Re: section placement q
Date: Thu, 25 May 2000 17:43:00 -0000	[thread overview]
Message-ID: <392DB19A.777C45BD@geocities.com> (raw)
In-Reply-To: <20000525190918.B20563@pcep-jamie.cern.ch>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 425 bytes --]

Jamie Lokier wrote:
> 
> A much more thorough approach, without the danger and still with
> sharing, is to have the linker optimise, à la -ffunction-sections
> -fdata-sections.  But extend the linker's gc-sections to do something
> like: put section .S in .init.S unless anybody from outside .init*
> references the section.

void foo() __attribute__ ((section("init")) { bar("hello"); }
char *p;
void bar(char *s) {p=s;}

  parent reply	other threads:[~2000-05-25 17:43 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-11 18:15 Andrew Morton
2000-05-11 19:01 ` Linus Torvalds
2000-05-13 21:47   ` Andrew Morton
2000-05-14 19:40     ` Graham Stoney
2000-05-15 10:56       ` Linus Torvalds
2000-05-24 18:40     ` Artur Skawina
2000-05-24 19:18       ` Andrew Morton
2000-05-25  6:58         ` Artur Skawina
2000-05-25  7:15           ` Andrew Morton
2000-05-25 17:43             ` Artur Skawina
2000-05-25 10:09           ` Jamie Lokier
2000-05-25 10:20             ` Richard Henderson
2000-05-25 17:43             ` Artur Skawina [this message]
2000-05-26  3:52               ` Jamie Lokier
2000-05-26  5:17                 ` Andrew Morton
2000-05-26  6:54                   ` Jamie Lokier

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=392DB19A.777C45BD@geocities.com \
    --to=skawina@geocities.com \
    --cc=andrewm@uow.edu.au \
    --cc=egcs@tantalophile.demon.co.uk \
    --cc=gcc@gcc.gnu.org \
    /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).