1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00
FFmpeg/libavdevice
Andreas Rheinhardt 7cf4c9037c avdevice/alldevices: Mark devices as hidden
Both GCC and Clang create code that inlines the loops in
next_input() and next_output() at high optimization
levels (presumably when there are not too many devices)
and this code leads to the creation of .got entries:
  e7:	48 3b 3d 00 00 00 00 	cmp    0x0(%rip),%rdi        # ee <av_input_video_device_next+0xe>
			ea: R_X86_64_REX_GOTPCRELX	ff_alsa_demuxer-0x4
  ee:	74 43                	je     133 <av_input_video_device_next+0x53>
  f0:	48 3b 3d 00 00 00 00 	cmp    0x0(%rip),%rdi        # f7 <av_input_video_device_next+0x17>
			f3: R_X86_64_REX_GOTPCRELX	ff_fbdev_demuxer-0x4
  f7:	74 41                	je     13a <av_input_video_device_next+0x5a>

These relocations can't be fixed up lateron when it is known
that the symbols exist in the same DSO.

This commit therefore marks these symbols as hidden, leading
to code like this:
  f7:	48 8d 05 00 00 00 00 	lea    0x0(%rip),%rax        # fe <av_input_video_device_next+0xe>
			fa: R_X86_64_PC32	ff_alsa_demuxer-0x4
  fe:	48 39 c7             	cmp    %rax,%rdi
 101:	74 55                	je     158 <av_input_video_device_next+0x68>
 103:	48 8d 05 00 00 00 00 	lea    0x0(%rip),%rax        # 10a <av_input_video_device_next+0x1a>
			106: R_X86_64_PC32	ff_fbdev_demuxer-0x4
 10a:	48 39 c7             	cmp    %rax,%rdi
 10d:	74 50                	je     15f <av_input_video_device_next+0x6f>

(Note: It is actually strange that the compiler creates code
that tries to read the addresses from the .got given that the
addresses can be read directly from indev_list/outdev_list.)

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2024-03-17 15:10:05 +01:00
..
tests
.gitignore
alldevices.c avdevice/alldevices: Mark devices as hidden 2024-03-17 15:10:05 +01:00
alsa_dec.c avformat/avformat: Add FFInputFormat, hide internals of AVInputFormat 2024-03-07 08:53:31 -03:00
alsa_enc.c avutil: remove deprecated FF_API_PKT_DURATION 2024-03-07 08:53:30 -03:00
alsa.c
alsa.h
android_camera.c avformat/avformat: Add FFInputFormat, hide internals of AVInputFormat 2024-03-07 08:53:31 -03:00
audiotoolbox.m Revert "all: Don't set AVClass.item_name to its default value" 2024-01-20 10:34:48 +01:00
avdevice.c avformat/avformat: Add FFInputFormat, hide internals of AVInputFormat 2024-03-07 08:53:31 -03:00
avdevice.h
avdeviceres.rc
avfoundation.m libavdevice: Fix the avfoundation device after switching to FFInputFormat 2024-03-08 12:48:59 +02:00
bktr.c avformat/avformat: Add FFInputFormat, hide internals of AVInputFormat 2024-03-07 08:53:31 -03:00
caca.c all: use designated initializers for AVOption.unit 2024-02-14 14:53:41 +01:00
ccfifo.c
decklink_common_c.h avdevice/decklink_enc: add support for SMPTE 2038 VANC packet output 2023-07-02 19:57:45 +02:00
decklink_common.cpp avdevice/decklink_enc: add support for SMPTE 2038 VANC packet output 2023-07-02 19:57:45 +02:00
decklink_common.h avdevice/decklink_enc: add support for SMPTE 2038 VANC packet output 2023-07-02 19:57:45 +02:00
decklink_dec_c.c avformat/avformat: Add FFInputFormat, hide internals of AVInputFormat 2024-03-07 08:53:31 -03:00
decklink_dec.cpp avdevice/decklink_dec: add explicit specifier 2023-11-21 08:02:29 +08:00
decklink_dec.h
decklink_enc_c.c all: use designated initializers for AVOption.unit 2024-02-14 14:53:41 +01:00
decklink_enc.cpp avformat/vapoursynth: Add missing inclusion of frame.h 2023-09-10 17:32:11 +02:00
decklink_enc.h
dshow_capture.h configure: Set WIN32_LEAN_AND_MEAN at configure time 2023-08-14 22:57:28 +03:00
dshow_common.c
dshow_crossbar.c
dshow_enummediatypes.c
dshow_enumpins.c
dshow_filter.c
dshow_pin.c
dshow.c avformat/avformat: Add FFInputFormat, hide internals of AVInputFormat 2024-03-07 08:53:31 -03:00
fbdev_common.c avdevice/fbdev_common: Make declaration proper prototype 2023-09-28 11:10:35 +02:00
fbdev_common.h
fbdev_dec.c avformat/avformat: Add FFInputFormat, hide internals of AVInputFormat 2024-03-07 08:53:31 -03:00
fbdev_enc.c Revert "all: Don't set AVClass.item_name to its default value" 2024-01-20 10:34:48 +01:00
file_open.c
gdigrab.c avformat/avformat: Add FFInputFormat, hide internals of AVInputFormat 2024-03-07 08:53:31 -03:00
iec61883.c avformat/avformat: Add FFInputFormat, hide internals of AVInputFormat 2024-03-07 08:53:31 -03:00
internal.h
jack.c avformat/avformat: Add FFInputFormat, hide internals of AVInputFormat 2024-03-07 08:53:31 -03:00
kmsgrab.c avformat/avformat: Add FFInputFormat, hide internals of AVInputFormat 2024-03-07 08:53:31 -03:00
lavfi.c avformat/avformat: Add FFInputFormat, hide internals of AVInputFormat 2024-03-07 08:53:31 -03:00
libavdevice.v
libcdio.c avformat/avformat: Add FFInputFormat, hide internals of AVInputFormat 2024-03-07 08:53:31 -03:00
libdc1394.c avformat/avformat: Add FFInputFormat, hide internals of AVInputFormat 2024-03-07 08:53:31 -03:00
Makefile
openal-dec.c avformat/avformat: Add FFInputFormat, hide internals of AVInputFormat 2024-03-07 08:53:31 -03:00
opengl_enc_shaders.h
opengl_enc.c avdevice: deprecate opengl outdev 2024-02-28 10:28:49 +01:00
oss_dec.c avformat/avformat: Add FFInputFormat, hide internals of AVInputFormat 2024-03-07 08:53:31 -03:00
oss_enc.c Revert "all: Don't set AVClass.item_name to its default value" 2024-01-20 10:34:48 +01:00
oss.c
oss.h
pulse_audio_common.c
pulse_audio_common.h avdevice/pulse_audio_common: Avoid inclusion of avcodec.h 2023-08-05 09:40:06 +02:00
pulse_audio_dec.c avformat/avformat: Add FFInputFormat, hide internals of AVInputFormat 2024-03-07 08:53:31 -03:00
pulse_audio_enc.c avutil: remove deprecated FF_API_PKT_DURATION 2024-03-07 08:53:30 -03:00
reverse.c
sdl2.c avdevice: deprecate sdl outdev 2024-02-28 10:28:49 +01:00
sndio_dec.c avformat/avformat: Add FFInputFormat, hide internals of AVInputFormat 2024-03-07 08:53:31 -03:00
sndio_enc.c Revert "all: Don't set AVClass.item_name to its default value" 2024-01-20 10:34:48 +01:00
sndio.c
sndio.h
timefilter.c
timefilter.h
utils.c avformat/avformat: Add FFInputFormat, hide internals of AVInputFormat 2024-03-07 08:53:31 -03:00
v4l2-common.c
v4l2-common.h
v4l2.c avformat/avformat: Add FFInputFormat, hide internals of AVInputFormat 2024-03-07 08:53:31 -03:00
v4l2enc.c Revert "all: Don't set AVClass.item_name to its default value" 2024-01-20 10:34:48 +01:00
version_major.h libs: bump major version for all libraries 2024-03-07 11:29:43 -03:00
version.c
version.h libs: bump major version for all libraries 2024-03-07 11:29:43 -03:00
vfwcap.c avformat/avformat: Add FFInputFormat, hide internals of AVInputFormat 2024-03-07 08:53:31 -03:00
xcbgrab.c avformat/avformat: Add FFInputFormat, hide internals of AVInputFormat 2024-03-07 08:53:31 -03:00
xv.c Revert "all: Don't set AVClass.item_name to its default value" 2024-01-20 10:34:48 +01:00