From: Jojo R <rjiejie@linux.alibaba.com>
To: binutils@sourceware.org
Subject: How to GC unused eh_frame ?
Date: Mon, 6 Jun 2022 19:44:32 +0800 [thread overview]
Message-ID: <39e23643-f444-4caf-a47a-5d3c0306c0c8@Spark> (raw)
In-Reply-To: <6cd35b89-8324-4cd3-97bf-919f7af29d13@Spark>
Hi guys,
I compiled C++ source codes with compiler’s option as '-ffunction-sections -fdata-sections -Wl,--gc-sections’,
and I found that some unused code size of ‘eh_frame’s which are come from unused functions are linked together into output elf file :(
I want to know whether Binutils has a nice way or configure to tell AS to split monolithic ‘eh_frame’ to <function>.eh_frame like ‘.text.<function>’ ?
and then the unused <function>.eh_frames will been GCed :)
Any suggestions ?
Regards,
— Jojo
parent reply other threads:[~2022-06-06 11:44 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <6cd35b89-8324-4cd3-97bf-919f7af29d13@Spark>]
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=39e23643-f444-4caf-a47a-5d3c0306c0c8@Spark \
--to=rjiejie@linux.alibaba.com \
--cc=binutils@sourceware.org \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).