|
Message-ID: <CAAvnz_qR39CKGz26nn2csdukOUOW-B0sONCv9NGjJ-kmc-Z9Uw@mail.gmail.com> Date: Mon, 29 Jul 2024 08:19:42 +0800 From: Howard Su <howard0su@...il.com> To: Howard Su <howard0su@...il.com>, 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 Per suggestion, I added awk script to do so. Please help review. also I noticed that stack unwind is still not functional. On Tue, Jul 23, 2024 at 5:39 AM Szabolcs Nagy <nsz@...t70.net> wrote: > * 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. > > -- -Howard Content of type "text/html" skipped View attachment "0001-Add-awk-script-to-add-CFI-directives-to-arm.patch" of type "text/x-patch" (6589 bytes)
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.