reduce relocations
@chpe
Submitted by Christian Persch Link to original bug (#503599)
Description
The autogenerated file unicode-nameslist.h has
struct _UnicharString { gunichar index; const gchar *value; };
static const UnicharString names_list_equals[] = { { 0x0000, "NULL" }, { 0x0001, "START OF HEADING" }, { 0x0002, "START OF TEXT" }, { 0x0003, "END OF TEXT" }, [...]
which leads to relocations. It should instead use ro data for the string data, and offsets in the struct:
struct _UnicharString { gunichar index; guint32 offset; };
static const UnicharString names_list_equals[] = { { 0x0000, 0 }, { 0x0001, 105 }, { 0x0002, 238 }, { 0x0003, 377 }, [...]
static const char names_list_equals_strings[] = "NULL\0" "START OF HEADING\0" "START OF TEXT\0" "END OF TEXT\0" [...]
Resolution: RESOLVED FIXED