public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "steven at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/43729] Mach-O LTO support needed for darwin
Date: Wed, 14 Apr 2010 22:10:00 -0000	[thread overview]
Message-ID: <20100414221021.1884.qmail@sourceware.org> (raw)
In-Reply-To: <bug-43729-11113@http.gcc.gnu.org/bugzilla/>



------- Comment #5 from steven at gcc dot gnu dot org  2010-04-14 22:10 -------
Collecting bits and pieces from all over, I'm trying to make a plan...

Consensus on IRC is that LTO data does not need its own Mach-O segment, and
that can it just fit as a section in the _TEXT (since LTO data is read-only) or
_DATA segment.

Re. changes in the darwin assembler/linker, it looks like they will just work.
>From http://gcc.gnu.org/ml/gcc/2010-04/msg00250.html:
-------------------------
Binutils for COFF targets needed a patch to allow sections to be
byte-aligned and byte-packed, as it wasn't originally possible to use any
alignment directive to reduce the section alignment below the default, and the
zip-compressed data sections need to be exactly sized to the data they contain
rather than padded up to the default section alignment of 4.

 If MachO can do that already, it won't need any changes.  Or it could be
fixed in GCC by modifying the format of the compressed sections to be
self-describing w.r.t valid data length in some way - this would probably be
the better thing to do in the long run.
-------------------------

So. Can MachO binutils already do that? Apparently yes:

$ as << ".section __TEXT,__foo"

gives a section alignment of 2^0=1 i.e. byte-aligned.

Alternatively, it is possible to disable zlib compression, although we should
try to avoid that.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43729


  parent reply	other threads:[~2010-04-14 22:10 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-12 15:51 [Bug target/43729] New: MachO " howarth at nitro dot med dot uc dot edu
2010-04-12 15:55 ` [Bug target/43729] " steven at gcc dot gnu dot org
2010-04-12 16:00 ` steven at gcc dot gnu dot org
2010-04-12 16:16 ` steven at gcc dot gnu dot org
2010-04-12 17:12 ` howarth at nitro dot med dot uc dot edu
2010-04-12 21:39 ` fang at csl dot cornell dot edu
2010-04-14 22:10 ` steven at gcc dot gnu dot org [this message]
2010-04-15 13:49 ` [Bug target/43729] Mach-O " howarth at nitro dot med dot uc dot edu
2010-04-15 14:04 ` stevenb dot gcc at gmail dot com
2010-04-19  7:40 ` steven at gcc dot gnu dot org
2010-04-26 14:49 ` mrs at gcc dot gnu dot org
2010-04-26 16:07 ` stevenb dot gcc at gmail dot com
2010-04-26 18:40 ` davek at gcc dot gnu dot org
2010-04-27  2:35 ` davek at gcc dot gnu dot org
2010-04-27 20:25 ` steven at gcc dot gnu dot org
2010-04-28 12:20 ` dominiq at lps dot ens dot fr
2010-04-28 13:04 ` dominiq at lps dot ens dot fr
2010-04-28 19:50 ` steven at gcc dot gnu dot org
2010-04-29 10:48 ` steven at gcc dot gnu dot org
2010-04-29 11:39 ` steven at gcc dot gnu dot org
2010-04-29 13:20 ` howarth at nitro dot med dot uc dot edu
2010-05-01 14:40 ` steven at gcc dot gnu dot org
2010-05-01 14:43 ` steven at gcc dot gnu dot org
2010-05-01 14:53 ` rguenth at gcc dot gnu dot org
2010-05-01 15:26 ` dominiq at lps dot ens dot fr
2010-05-01 21:40 ` dominiq at lps dot ens dot fr
2010-05-01 21:51 ` steven at gcc dot gnu dot org
2010-05-01 22:19 ` howarth at nitro dot med dot uc dot edu
2010-05-01 22:31 ` stevenb dot gcc at gmail dot com
2010-05-01 23:22 ` mrs at gcc dot gnu dot org
2010-05-01 23:59 ` howarth at nitro dot med dot uc dot edu
2010-05-02  0:01 ` howarth at nitro dot med dot uc dot edu
2010-05-02  0:07 ` howarth at nitro dot med dot uc dot edu
2010-05-02  0:10 ` howarth at nitro dot med dot uc dot edu
2010-05-02  0:48 ` howarth at nitro dot med dot uc dot edu
2010-05-02  1:24 ` mrs at gcc dot gnu dot org
2010-05-02 13:11 ` howarth at nitro dot med dot uc dot edu
2010-05-02 13:59 ` howarth at nitro dot med dot uc dot edu
2010-05-02 19:16 ` howarth at nitro dot med dot uc dot edu
2010-05-03 21:40 ` mrs at gcc dot gnu dot org
2010-05-03 22:01 ` howarth at nitro dot med dot uc dot edu
2010-05-03 22:15 ` steven at gcc dot gnu dot org
2010-05-03 22:47 ` mrs at gcc dot gnu dot org
2010-05-03 23:41 ` howarth at nitro dot med dot uc dot edu
2010-05-04  8:22 ` mrs at gcc dot gnu dot org
2010-05-07 22:23 ` steven at gcc dot gnu dot org
2010-05-08 14:37 ` howarth at nitro dot med dot uc dot edu
2010-05-08 14:39 ` howarth at nitro dot med dot uc dot edu
2010-05-08 14:55 ` howarth at nitro dot med dot uc dot edu
2010-05-08 20:08 ` howarth at nitro dot med dot uc dot edu
2010-05-08 20:14 ` howarth at nitro dot med dot uc dot edu
2010-05-25  0:29 ` mrs at gcc dot gnu dot org
2010-06-06 10:50 ` dominiq at lps dot ens dot fr
2010-06-06 13:46 ` dominiq at lps dot ens dot fr
2010-06-06 20:23 ` dominiq at lps dot ens dot fr
2010-06-14 13:14 ` howarth at nitro dot med dot uc dot edu
2010-07-17 22:55 ` steven at gcc dot gnu dot org

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=20100414221021.1884.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).