After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 505445 - remove more relocations
remove more relocations
Status: RESOLVED FIXED
Product: atk
Classification: Platform
Component: atk
unspecified
Other Linux
: High normal
: ---
Assigned To: Li Yuan
Li Yuan
Depends on:
Blocks:
 
 
Reported: 2007-12-24 15:59 UTC by Christian Persch
Modified: 2008-11-27 07:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH] Remove relocations. Bug #505445. (14.85 KB, patch)
2007-12-24 16:01 UTC, Christian Persch
committed Details | Review

Description Christian Persch 2007-12-24 15:59:48 UTC
Structs of this form
static const char *strings[] = { "string1", "string2" };
and
static const struct { char *string; int other } items[] = {
{ "item1", 0}, { "item2", 1} };
etc. induce unneccessary relocations. Attached patch removes them.
Comment 1 Christian Persch 2007-12-24 16:01:18 UTC
Created attachment 101547 [details] [review]
[PATCH] Remove relocations. Bug #505445.

 atk/atkobject.c |  328 +++++++++++++++++++++++++++++++++++--------------------
 atk/atktext.c   |  131 ++++++++++++++--------
 2 files changed, 294 insertions(+), 165 deletions(-)
Comment 2 Matthias Clasen 2008-11-25 08:01:45 UTC
Patch looks fine to me.