From: "Martin Storsjö" <martin@martin.st>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH 2/2] libavcodec: Set hidden visibility on global symbols accessed from x86_64 assembly
Date: Thu, 4 Aug 2022 14:20:16 +0300 (EEST)
Message-ID: <594cbc99-5291-42ff-d0d-17235b38dc1@martin.st> (raw)
In-Reply-To: <20220727120000.3596575-1-thomas@gllm.fr>
On Wed, 27 Jul 2022, Thomas Guillem wrote:
> DECLARE_ALIGNED, DECLARE_ASM_ALIGNED, and DECLARE_ASM_CONST will include
> attribute_visibility_hidden.
Hmm, I'm not entirely sure that we should do that - if we should add such
extra meaning to those macros.
How many symbols would it need to be applied on, if we don't apply it via
these macros?
I was a bit concerned that DECLARE_ALIGNED could be used for e.g. stack
local variables (where visibility doesn't make sense) - but we do have
LOCAL_ALIGNED_* macros for that instead, so maybe it could work this way
after all?
Do note, that these are currently defined in libavutil/mem.h, but after
the next major bump they'll be in libavutil/mem_internal.h. Currently
their contents are duplicated in the both, so any changes would need to
apply to both.
I see that libavutil/mem.h (which is a public installed header) doesn't
explicitly include libavutil/internal.h, so if someone uses those macros
without including libavutil/internal.h, attribute_visibility_hidden would
be undefined.
After the next bump, when these macros are entirely internal, this issue
is much clearer (and at that point, I think it could be a bit more
tolerable to extend their meaning to include visibility).
// Martin
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2022-08-04 11:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-27 12:00 Thomas Guillem
2022-08-04 11:20 ` Martin Storsjö [this message]
2022-08-04 12:51 ` Andreas Rheinhardt
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=594cbc99-5291-42ff-d0d-17235b38dc1@martin.st \
--to=martin@martin.st \
--cc=ffmpeg-devel@ffmpeg.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
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git