author | Camm Maguire <camm@debian.org> | 2013年11月01日 15:01:55 +0000 |
---|---|---|
committer | Camm Maguire <camm@debian.org> | 2013年11月05日 17:45:35 +0000 |
commit | 315b4e4f1c7e29fa7a3ac546b19856eccfa9bcc1 (patch) | |
tree | 9bfd0e4b6f70a358c321216e950fe28762749c9b | |
parent | aa6a9ee235f7f104000b4fd0315d32ad7b5f2815 (diff) | |
download | gcl-315b4e4f1c7e29fa7a3ac546b19856eccfa9bcc1.tar.gz |
-rwxr-xr-x | gcl/o/unexelf.c | 2 |
diff --git a/gcl/o/unexelf.c b/gcl/o/unexelf.c index 07cbf680b..2effac393 100755 --- a/gcl/o/unexelf.c +++ b/gcl/o/unexelf.c @@ -1244,7 +1244,7 @@ unexec (char *new_name, char *old_name, unsigned int data_start, unsigned int bs /* This code handles two different size structs, but there should be no harm in that provided that r_offset is always the first member. */ - nn = section.sh_info; + if (!(nn = section.sh_info)) break; if (!strcmp (old_section_names + NEW_SECTION_H (nn).sh_name, ".data") || !strcmp ((old_section_names + NEW_SECTION_H (nn).sh_name), ".sdata") |