This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: r196201 - in /trunk: gcc/ChangeLog gcc/config/i...


This commit breaks the build if the BFD linker is used (I have gold on
my box, so I missed it).

Short repro:
% cat preinit.cc
void foo() {}
__attribute__((section(".preinit_array")))  void (*xxx)(void) = foo;
% g++ preinit.cc -shared # gold
% sudo apt-get remove  binutils-gold
...
% g++ preinit.cc -shared # bfd
/usr/bin/ld: /tmp/cc4GVflE.o: .preinit_array section is not allowed in DSO
/usr/bin/ld: failed to set dynamic section sizes: Nonrepresentable
section on output
collect2: ld returned 1 exit status
%

Can we stop building the asan-rt as DSO and leave only the static
variant (as in clang)?

--kcc

On Thu, Feb 21, 2013 at 2:57 PM,  <kcc@gcc.gnu.org> wrote:
> Author: kcc
> Date: Thu Feb 21 10:57:10 2013
> New Revision: 196201
>
> URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196201
> Log:
> libsanitizer merge from upstream r175733
>
> Added:
>     trunk/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc
>     trunk/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
> Removed:
>     trunk/libsanitizer/asan/dynamic/asan_interceptors_dynamic.cc
> Modified:
>     trunk/gcc/ChangeLog
>     trunk/gcc/config/i386/i386.c
>     trunk/libsanitizer/ChangeLog
>     trunk/libsanitizer/MERGE
>     trunk/libsanitizer/asan/asan_flags.h
>     trunk/libsanitizer/asan/asan_intercepted_functions.h
>     trunk/libsanitizer/asan/asan_interceptors.cc
>     trunk/libsanitizer/asan/asan_internal.h
>     trunk/libsanitizer/asan/asan_mac.cc
>     trunk/libsanitizer/asan/asan_mapping.h
>     trunk/libsanitizer/asan/asan_report.cc
>     trunk/libsanitizer/asan/asan_rtl.cc
>     trunk/libsanitizer/include/sanitizer/asan_interface.h
>     trunk/libsanitizer/include/sanitizer/common_interface_defs.h
>     trunk/libsanitizer/sanitizer_common/Makefile.am
>     trunk/libsanitizer/sanitizer_common/Makefile.in
>     trunk/libsanitizer/sanitizer_common/sanitizer_common.cc
>     trunk/libsanitizer/sanitizer_common/sanitizer_common.h
>     trunk/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
>     trunk/libsanitizer/sanitizer_common/sanitizer_flags.cc
>     trunk/libsanitizer/sanitizer_common/sanitizer_internal_defs.h
>     trunk/libsanitizer/sanitizer_common/sanitizer_libc.h
>     trunk/libsanitizer/sanitizer_common/sanitizer_linux.cc
>     trunk/libsanitizer/sanitizer_common/sanitizer_mac.cc
>     trunk/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
>     trunk/libsanitizer/sanitizer_common/sanitizer_posix.cc
>     trunk/libsanitizer/sanitizer_common/sanitizer_stacktrace.cc
>     trunk/libsanitizer/sanitizer_common/sanitizer_symbolizer_linux.cc
>     trunk/libsanitizer/sanitizer_common/sanitizer_win.cc
>     trunk/libsanitizer/tsan/tsan_platform_linux.cc
>     trunk/libsanitizer/tsan/tsan_platform_mac.cc
>     trunk/libsanitizer/tsan/tsan_platform_windows.cc
>     trunk/libsanitizer/tsan/tsan_rtl.h
>     trunk/libsanitizer/tsan/tsan_rtl_thread.cc
>     trunk/libsanitizer/tsan/tsan_stat.cc
>     trunk/libsanitizer/tsan/tsan_stat.h
>     trunk/libsanitizer/tsan/tsan_suppressions.cc
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]