• Adam Jackson's avatar
    Allow xf86DuplicateMode() to work correctly on read-only modes. · fd41f46a
    Adam Jackson authored
    Before this it was meaningless to try to mark DisplayModeRec tables
    const, since the mode name would be emitted as a pointer to an
    anonymous string constant, and therefore would have to be fixed up by
    ld.so and so couldn't live in .rodata.  With this change the standard
    mode lists can live in .rodata, and modes duplicated from them will
    have their names filled in on the fly.
xf86Modes.c 17.9 KB