bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/18695] [x86-64] Missing relocation overflow check


From: hjl.tools at gmail dot com
Subject: [Bug gold/18695] [x86-64] Missing relocation overflow check
Date: Sun, 07 Feb 2016 03:34:43 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=18695

--- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> ---
X32 overflow check is wrong.  One x32 gold test failure:

`echo g++ -mx32 -fno-lto  -W -Wall    -Werror -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -fmerge-constants -g -O2 -fno-use-linker-plugin 
-static-libstdc++ -static-libgcc  -o basic_static_pic_test | sed -e
's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Bgcctestdir/ -static basic_pic_test.o
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/crti.o(.init+0x11):
error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(libc-start.o):function
generic_start_main: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(libc-start.o):function
generic_start_main: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(exit.o):function
__run_exit_handlers: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(libc-cancellation.o):function
__libc_enable_asynccancel: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(genops.o):function
_IO_un_link: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(genops.o):function
_IO_un_link: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(genops.o):function
_IO_link_in: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(genops.o):function
_IO_link_in: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(genops.o):function
_IO_default_finish: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(genops.o):function
_IO_default_finish: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(genops.o):function
_IO_flush_all_lockp: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(genops.o):function
_IO_flush_all_lockp: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(genops.o):function
_IO_flush_all: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(genops.o):function
_IO_flush_all: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(genops.o):function
_IO_flush_all_linebuffered: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(genops.o):function
_IO_flush_all_linebuffered: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(dl-lookup.o):function
do_lookup_x: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(dl-close.o):function
_dl_close_worker.part.0: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(dl-close.o):function
_dl_close_worker.part.0: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(dl-close.o):function
_dl_close_worker.part.0: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(setlocale.o):function
setlocale: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(finddomain.o):function
_nl_find_domain: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(loadmsgcat.o):function
_nl_load_domain: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(loadmsgcat.o):function
_nl_load_domain: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(loadmsgcat.o):function
_nl_unload_domain: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(vfprintf.o):function
_IO_vfprintf_internal: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(vfprintf.o):function
_IO_vfprintf_internal: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(vfprintf.o):function
buffered_vfprintf: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(vfprintf.o):function
buffered_vfprintf: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(vfscanf.o):function
_IO_vfscanf_internal: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(vfscanf.o):function
_IO_vfscanf_internal: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(dl-fini.o):function
_dl_fini: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(dcigettext.o):function
_nl_find_msg: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(dcigettext.o):function
_nl_find_msg: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(dcigettext.o):function
_nl_find_msg: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(dcigettext.o):function
_nl_find_msg: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(dcigettext.o):function
__dcigettext: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(dcigettext.o):function
__dcigettext: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(dcigettext.o):function
__dcigettext: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(dcigettext.o):function
__dcigettext: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(sdlerror.o):function
init: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(sdlerror.o):function
__dlerror: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../../libx32/libc.a(sdlerror.o):function
_dlerror_run: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/x32/libgcc_eh.a(unwind-dw2.o):function
uw_init_context_1: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/x32/libgcc_eh.a(unwind-dw2-fde-dip.o):function
__register_frame_info.part.4: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/x32/libgcc_eh.a(unwind-dw2-fde-dip.o):function
__register_frame_info_bases: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/x32/libgcc_eh.a(unwind-dw2-fde-dip.o):function
__register_frame_info_table_bases: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/x32/libgcc_eh.a(unwind-dw2-fde-dip.o):function
__deregister_frame_info_bases: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/x32/libgcc_eh.a(unwind-dw2-fde-dip.o):function
__deregister_frame_info_bases: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/x32/libgcc_eh.a(unwind-dw2-fde-dip.o):function
_Unwind_Find_FDE: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/x32/libgcc_eh.a(unwind-dw2-fde-dip.o):function
_Unwind_Find_FDE: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/x32/libgcc_eh.a(unwind-dw2-fde-dip.o):function
_Unwind_Find_FDE: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/x32/libgcc_eh.a(unwind-dw2-fde-dip.o):function
__register_frame_info.part.4: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/x32/libgcc_eh.a(unwind-dw2-fde-dip.o):function
__register_frame_info_bases: error: relocation overflow
/usr/lib/gcc/x86_64-redhat-linux/5.3.1/x32/libgcc_eh.a(unwind-dw2-fde-dip.o):function
__register_frame_info_table_bases: error: relocation overflow
collect2: error: ld returned 1 exit status
Makefile:5240: recipe for target 'basic_static_pic_test' failed
make: *** [basic_static_pic_test] Error 1
address@hidden testsuite]$ 

Cary, do you want me to fix it?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]