Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240722213915.GS3766212@port70.net>
Date: Mon, 22 Jul 2024 23:39:15 +0200
From: Szabolcs Nagy <nsz@...t70.net>
To: Howard Su <howard0su@...il.com>
Cc: Rich Felker <dalias@...c.org>, Thorsten Glaser <tg@...bsd.de>,
	musl@...ts.openwall.com
Subject: Re: [Suggestion] Add cfi directives to assembly code via
 chatgpt

* Howard Su <howard0su@...il.com> [2024-07-22 14:39:35 +0800]:
> fair enough. Let's put aside that LLM writing the CFI directives. I do have
> knowledge about it to hand write it.
> 
> Do you think it is a good idea to put effort into adding CFI to those
> assembly code, especially the thread_cp part, which blocks my debug.

note that there is now support in gas to synthetize the CFI for
manually written x86 asm code with --scfi=experimental
https://sourceware.org/binutils/docs/as.html

the aarch64 support just got committed recently
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=29085f7243e415db0e1617173eb80c441671ba0e

there is no support for arm yet.

meanwhile musl has tools/add-cfi*.awk that you could extend to
support arm, this is simpler than adding the gas support as it
only has to work for musl code.

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.