caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Stefano Zacchiroli <zack@cs.unibo.it>
To: Inria Ocaml Mailing List <caml-list@inria.fr>
Cc: Robert Bihlmeyer <robbe@orcus.priv.at>
Subject: [Caml-list] Does ocaml bytecodes linked in custom mode violate ELF std?
Date: Thu, 24 Jan 2002 15:04:47 +0100	[thread overview]
Message-ID: <20020124140447.GA3075@cs.unibo.it> (raw)
In-Reply-To: <20020118160419.GA6647@cs.unibo.it>

I received a third part opinion (i.e. not a camlers) from Robert
Bihlmeyer (cc: in this mail, so please keep he in the cc: list) about
the ocaml bytecode executable linked in custom mode.

I report his opinion below, in his opinion that kind of executables
violate the ELF standard.

> After some careful analysis of mldvi I have come to the conclusion
> that this file violates the ELF standard. Specifically it seems to
> contain additional data that is not mentioned in any one of the ELF
> indices. It's no wonder that most of the GNU binutils will silently
> drop this additional data (strip being the one in question, but a
> no-op "objcopy mldvi mldvi2" will also remove it). I think binutils
> are doing the right thing here.
> 
> What the ocaml compiler should do is not just tag data onto the end of
> the file but put it into a proper ELF section. Either an existing one
> (e.g. ".data") or a new one (e.g. "bytecode"). Using the BFD library
> that should not be that hard, and it's true to the extensible spirit
> of ELF.

Who wants to answer to these observations?

TIA,
Cheers.

-- 
Stefano "Zack" Zacchiroli <zack@cs.unibo.it> ICQ# 33538863
Home Page: http://www.cs.unibo.it/~zacchiro
Undergraduate student of Computer Science @ University of Bologna, Italy
                 - Information wants to be Open -
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


      reply	other threads:[~2002-01-24 14:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-18 16:04 [Caml-list] ocaml bytecode internals: stripping Stefano Zacchiroli
2002-01-24 14:04 ` Stefano Zacchiroli [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=20020124140447.GA3075@cs.unibo.it \
    --to=zack@cs.unibo.it \
    --cc=caml-list@inria.fr \
    --cc=robbe@orcus.priv.at \
    /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 NNTP newsgroup(s).