diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-02-13 12:02:29 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-02-13 12:02:29 +0000 |
commit | 701ed6dcfb88d2dd18280239c3112f8403c470b4 (patch) | |
tree | dde3264da2a50fe742113f87f1f3bc2214c8c812 /gdb/solib-svr4.c | |
parent | c09529e5f88c94b55340b953174b91f8873ad593 (diff) | |
download | gdb-701ed6dcfb88d2dd18280239c3112f8403c470b4.zip gdb-701ed6dcfb88d2dd18280239c3112f8403c470b4.tar.gz gdb-701ed6dcfb88d2dd18280239c3112f8403c470b4.tar.bz2 |
gdb/
* solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
only if INFO_VERBOSE.
gdb/testsuite/
* gdb.base/prelink.exp (set verbose on): New.
Diffstat (limited to 'gdb/solib-svr4.c')
-rw-r--r-- | gdb/solib-svr4.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index 9d4e59e..ef32f46 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -234,10 +234,13 @@ LM_ADDR_CHECK (struct so_list *so, bfd *abfd) { l_addr = l_dynaddr - dynaddr; - warning (_(".dynamic section for \"%s\" " - "is not at the expected address"), so->so_name); - warning (_("difference appears to be caused by prelink, " - "adjusting expectations")); + if (info_verbose) + { + warning (_(".dynamic section for \"%s\" " + "is not at the expected address"), so->so_name); + warning (_("difference appears to be caused by prelink, " + "adjusting expectations")); + } } else warning (_(".dynamic section for \"%s\" " |