diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-01-14 20:58:43 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-01-14 20:58:43 +0000 |
commit | 1edb7335e650dd488ced3ad2d440297e8810cc58 (patch) | |
tree | ff9f5ed6b3c772feb26bebb36c7f0ae065e627d4 /binutils/nlmconv.c | |
parent | 8a432746ae26697e9de5d42d0ac7a27b45e54d3e (diff) | |
download | gdb-1edb7335e650dd488ced3ad2d440297e8810cc58.zip gdb-1edb7335e650dd488ced3ad2d440297e8810cc58.tar.gz gdb-1edb7335e650dd488ced3ad2d440297e8810cc58.tar.bz2 |
* nlmconv.c (main): Warn about an attempt to use a shared library
with uninitialized data.
Diffstat (limited to 'binutils/nlmconv.c')
-rw-r--r-- | binutils/nlmconv.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/binutils/nlmconv.c b/binutils/nlmconv.c index 94d3658..812fe8b 100644 --- a/binutils/nlmconv.c +++ b/binutils/nlmconv.c @@ -723,6 +723,13 @@ main (argc, argv) need. However, we would have to figure out the sizes of the external and public information, and that can not be done without reading through them. */ + if (sharedhdr.uninitializedDataSize > 0) + { + /* There is no place to record this information. */ + fprintf (stderr, + "%s:%s: warning: shared libraries can not have uninitialized data\n", + program_name, sharelib_file); + } shared_offset = st.st_size; if (shared_offset > sharedhdr.codeImageOffset) shared_offset = sharedhdr.codeImageOffset; |