[igt-dev] [PATCH i-g-t 1/2] lib: Add silent __igt_i915_driver_unload
Dixit, Ashutosh
ashutosh.dixit at intel.com
Mon Feb 14 18:08:54 UTC 2022
On Mon, 14 Feb 2022 02:23:11 -0800, Gupta, Anshuman wrote:
>
> > This seems like a bug. The sound and aux arrays above should be static
> > otherwise these strings go out of scope after the function exits.
?
> AFAIU all string literals (both local and global) are part of .rodata elf
> section, which is ultimately a file backed read-execute-private mapping
> (r-xp) in process map (/proc/pid/maps). This should not go out of
> scope. Please correct me if I am being wrong here.
Yup, if the file is mmap'd you are right.
More information about the igt-dev
mailing list