diff options
author | Ian Lance Taylor <ian@airs.com> | 2011-06-17 11:23:15 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2011-06-17 11:23:15 +0000 |
commit | 780cd40cae87f6b77858dd8507f606fb57678357 (patch) | |
tree | 19ed79ae4c646f2de0eec18425fef43d4c41042d /gold | |
parent | a41759a6c3e9f13a77fed92c09b7287b0c6659b8 (diff) | |
download | fsf-binutils-gdb-780cd40cae87f6b77858dd8507f606fb57678357.zip fsf-binutils-gdb-780cd40cae87f6b77858dd8507f606fb57678357.tar.gz fsf-binutils-gdb-780cd40cae87f6b77858dd8507f606fb57678357.tar.bz2 |
* object.cc (Sized_relobj::do_layout): Keep warning sections when
making a shared library.
Diffstat (limited to 'gold')
-rw-r--r-- | gold/ChangeLog | 5 | ||||
-rw-r--r-- | gold/object.cc | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog index 347d7f4..ca3f41f 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2011-06-17 Ian Lance Taylor <iant@google.com> + + * object.cc (Sized_relobj::do_layout): Keep warning sections when + making a shared library. + 2011-06-09 Ian Lance Taylor <iant@google.com> * script-sections.cc diff --git a/gold/object.cc b/gold/object.cc index bde89f6..4aa3e81 100644 --- a/gold/object.cc +++ b/gold/object.cc @@ -1214,7 +1214,7 @@ Sized_relobj<size, big_endian>::do_layout(Symbol_table* symtab, { if (this->handle_gnu_warning_section(name, i, symtab)) { - if (!relocatable) + if (!relocatable && !parameters->options().shared()) omit[i] = true; } @@ -1233,8 +1233,7 @@ Sized_relobj<size, big_endian>::do_layout(Symbol_table* symtab, // -fsplit-stack. if (this->handle_split_stack_section(name)) { - if (!parameters->options().relocatable() - && !parameters->options().shared()) + if (!relocatable && !parameters->options().shared()) omit[i] = true; } |