[FFmpeg-devel] [PATCH] lavu/hash.c: Add missing "static const".

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Aug 30 22:46:24 CEST 2014

On Sat, Aug 30, 2014 at 12:58:35PM -0700, Timothy Gu wrote:
> On Aug 30, 2014 7:37 AM, "Reimar Döffinger" <Reimar.Doeffinger at gmx.de>
> wrote:
> > But mostly I care about having it in .rodata, everything else
> > I'm willing to adapt to what others prefer.
> What are the gains for using .rodata instead of .data?

It is read-only.
Which means at least
1) It is shared between all processes using the library
2) It cannot be overwritten, accidentally or as part of an exploit

Maybe other things I can't think of right now.

More information about the ffmpeg-devel mailing list