From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] Debugging (was: ARM : Removing unwind dummy functions)
Date: Fri, 19 Oct 2012 01:02:41 +0200 [thread overview]
Message-ID: <20121019010241.59a52963@lilith> (raw)
In-Reply-To: <20121018201414.GA11821@debian>
Hi Gabriel,
On Thu, 18 Oct 2012 22:14:14 +0200, Gabriel Huau
<contact@huau-gabriel.fr> wrote:
> Hi,
>
> I would like to know if it's really necessary to keep the dummy
> functions in arch/arm/lib/eabi_compat.c.
>
> These function should not be happen in our case (that why the body is
> empty).
>
> They have been introduced due to problems with some toolchains that was
> referencing these functions. But we can avoid this hack by adding the
> option '-fno-unwind-tables' at the compilation time no ? (correct me if
> I'm wrong).
We can do this, but then we lose some potentially helpful debug info.
OTOH, this debug info is not useful in production.
Which leads to a more general question: what about options for
debugging less basic than #define'ing DEBUG ? (my favorite, and one
a few people share I believe, is the ability to build an U-Boot that can
be loaded and run from RAM, i.e. without the CPU critical inits, and
possibly also without relocation. These features could be made
available through debug options such as DEBUG_SKIP_CRITICAL_INIT or
DEBUG_SKIP_RELOCATION).
Here we could have DEBUG_ARM_UNWIND_SUPPORT: if undefined, option
-fno-unwind-tables is added to compilers which understand it and unwind
helper functions are not compiled, and if defined, helpers are compiled.
Of course, debug options could be *tested* in the code and *documented*
in doc/README.debug-options, but their *definition* would be forbidden
in committed code; they would be allowed only in the working directory.
Thoughts?
> Best regards,
Amicalement,
--
Albert.
next prev parent reply other threads:[~2012-10-18 23:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-18 20:14 [U-Boot] ARM : Removing unwind dummy functions Gabriel Huau
2012-10-18 23:02 ` Albert ARIBAUD [this message]
2012-10-18 23:56 ` [U-Boot] Debugging (was: ARM : Removing unwind dummy functions) Tom Rini
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=20121019010241.59a52963@lilith \
--to=albert.u.boot@aribaud.net \
--cc=u-boot@lists.denx.de \
/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