aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjakub <jakub@94c539fb-cf18-0410-b60f-edeeb537fa16>2009-06-15 11:40:54 +0000
committerjakub <jakub@94c539fb-cf18-0410-b60f-edeeb537fa16>2009-06-15 11:40:54 +0000
commit9ce5995832cdfaf78ee9ba8374c46762513c92b6 (patch)
tree489daa4fbc229c1dafc871d6f13bf00167a737e6
parente20568562b7679bee0ba7e040da5586a69a80c41 (diff)
downloadprelink-cross-9ce5995832cdfaf78ee9ba8374c46762513c92b6.tar.gz
prelink-cross-9ce5995832cdfaf78ee9ba8374c46762513c92b6.tar.bz2
prelink-cross-9ce5995832cdfaf78ee9ba8374c46762513c92b6.zip
* src/Makefile.am (DEFS, AM_CFLAGS): Add -Wno-pointer-sign.
* src/Makefile.in: Regenerated. * src/data.c (reopen_dso): Initialize data variable to avoid warnings. git-svn-id: http://sourceware.org/svn/prelink@171 94c539fb-cf18-0410-b60f-edeeb537fa16
-rw-r--r--trunk/ChangeLog5
-rw-r--r--trunk/src/Makefile.am4
-rw-r--r--trunk/src/Makefile.in4
-rw-r--r--trunk/src/dso.c1
4 files changed, 10 insertions, 4 deletions
diff --git a/trunk/ChangeLog b/trunk/ChangeLog
index 7e9b213..e1870c4 100644
--- a/trunk/ChangeLog
+++ b/trunk/ChangeLog
@@ -1,5 +1,10 @@
2009-06-15 Jakub Jelinek <jakub@redhat.com>
+ * src/Makefile.am (DEFS, AM_CFLAGS): Add -Wno-pointer-sign.
+ * src/Makefile.in: Regenerated.
+ * src/data.c (reopen_dso): Initialize data variable to avoid
+ warnings.
+
* src/dwarf2.h (DW_TAG_condition, DW_TAG_shared_type): Define.
(DW_OP_form_tls_address, DW_OP_call_frame_cfa, DW_OP_bit_piece,
DW_OP_implicit_value, DW_OP_stack_value, DW_OP_GNU_uninit,
diff --git a/trunk/src/Makefile.am b/trunk/src/Makefile.am
index 882eeea..d2265aa 100644
--- a/trunk/src/Makefile.am
+++ b/trunk/src/Makefile.am
@@ -2,8 +2,8 @@
AUTOMAKE_OPTIONS = 1.4 gnu
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -Wall
-AM_CFLAGS = -Wall
+DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -Wall -Wno-pointer-sign
+AM_CFLAGS = -Wall -Wno-pointer-sign
AM_CPPFLAGS = -DSBINDIR='"@sbindir@"'
INCLUDES = @GELFINCLUDE@
diff --git a/trunk/src/Makefile.in b/trunk/src/Makefile.in
index 7dbe941..85cf845 100644
--- a/trunk/src/Makefile.in
+++ b/trunk/src/Makefile.in
@@ -97,8 +97,8 @@ install_sh = @install_sh@
AUTOMAKE_OPTIONS = 1.4 gnu
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -Wall
-AM_CFLAGS = -Wall
+DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -Wall -Wno-pointer-sign
+AM_CFLAGS = -Wall -Wno-pointer-sign
AM_CPPFLAGS = -DSBINDIR='"@sbindir@"'
INCLUDES = @GELFINCLUDE@
diff --git a/trunk/src/dso.c b/trunk/src/dso.c
index fcefafb..c12997b 100644
--- a/trunk/src/dso.c
+++ b/trunk/src/dso.c
@@ -844,6 +844,7 @@ reopen_dso (DSO *dso, struct section_move *move, const char *temp_base)
}
else
{
+ memset (&data, 0, sizeof data);
data.d_type = ELF_T_NUM;
data1 = NULL;
while ((data1 = elf_getdata (dso->scn[j], data1))