mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Alex <alexinbeijing@gmail.com>
To: musl@lists.openwall.com
Subject: Re: [PATCH v9] Build process uses script to add CFI directives to x86 asm
Date: Sun, 21 Jun 2015 07:00:57 +0200	[thread overview]
Message-ID: <CACsECNciXBPXai5fR-m71bJ0qpWd6KwirNF_X4UqRSAhLV9tag@mail.gmail.com> (raw)
In-Reply-To: <20150620211144.GA1173@brightrain.aerifal.cx>

[-- Attachment #1: Type: text/plain, Size: 1695 bytes --]

>
>
> I think someone mentioned this before -- this still fails to apply CFI
> to the asm files obtained via the .sub/SUBARCH system (see the rules
> just above the ones you changed). Of course I don't really like
> duplicating complex rules, and i386 has no SUBARCHs anyway, so perhaps
> we could put off changing this if someone has an idea for how to
> eliminate the extra rules for SUBARCHs when we overhaul the build
> system...
>

This was intentional, but since it has come up so many times, I will add
the (extraneous) rules for SUBARCHs.


> I'd still like to check $CFLAGS in addition to $CFLAGS_AUTO, since
> CFLAGS=-g is the usual way I ask for debug info. (I'm sorry I ever
> added the --enable-debug option to configure. :)
>

OK, will do.


> I haven't reviewed the awk script much at all, but as long as it seems
> to work in practice I'm okay with committing it. One thing I would
> like to ask though -- is it pretty robust against bad things happening
> if it sees new asm constructs it's not expecting? I'd just like to
> avoid regressions if we add new asm later, where it becomes necessary
> to delay commits to asm in order to fix bugs in the CFI generation.


It passes all your asm through and simply adds debugging directives when it
recognizes certain constructs. So in no case will it actually break the
asm. The worst which will happen is that you will adjust the stack pointer
in some obscure way that it doesn't recognize, no CFI directive will be
added, and then a debugger will be unable to produce a stack trace at that
point in the code. But this is no worse than what we have right now. Right
now we don't do anything to help the debugger at all.

Thanks, AD

[-- Attachment #2: Type: text/html, Size: 2364 bytes --]

  reply	other threads:[~2015-06-21  5:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-15  6:45 Alex Dowad
2015-06-20 21:11 ` Rich Felker
2015-06-21  5:00   ` Alex [this message]
2015-06-21  5:05     ` Rich Felker
2015-06-23 19:18 Alex Dowad
2015-06-23 21:52 ` Rich Felker
2015-06-24  5:33   ` Alex
2015-06-28  2:58     ` Rich Felker
2015-07-08 14:16     ` Rich Felker
2015-07-08 14:25       ` Alex
2015-07-09  5:00         ` Rich Felker
2015-07-07  3:39 ` Rich Felker
2015-07-07  5:45   ` Alex
2015-07-07 13:21     ` Rich Felker
2015-07-07 16:40       ` Alex
2015-07-07 18:15         ` Rich Felker
2015-07-07 18:27           ` Alex
     [not found]             ` <20150708023638.GJ1173@brightrain.aerifal.cx>
2015-07-08  7:13               ` Alex
2015-07-08  7:54                 ` Alex
2015-07-08 14:11                   ` Rich Felker
2015-07-08 14:24                     ` Alex

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=CACsECNciXBPXai5fR-m71bJ0qpWd6KwirNF_X4UqRSAhLV9tag@mail.gmail.com \
    --to=alexinbeijing@gmail.com \
    --cc=musl@lists.openwall.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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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).