[Bug ld/22962] [RISCV] add abi subdirectories support to ld
https://sourceware.org/bugzilla/show_bug.cgi?id=22962 Jim Wilson changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2018-05-04 Ever confirmed|0 |1 -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/22962] [RISCV] add abi subdirectories support to ld
https://sourceware.org/bugzilla/show_bug.cgi?id=22962 --- Comment #15 from Jim Wilson --- I've posted a proposed patch for review https://sourceware.org/ml/binutils/2018-05/msg00043.html And there is also a gcc part as it adds new linker emulations https://gcc.gnu.org/ml/gcc-patches/2018-05/msg00249.html but the gcc patch is not needed if you only use the lp64d (or ilp32d) ABI. This is only enabled for linux at the moment. I don't know if any other OS needs it. Embedded targets should not need it, since we use the usual multilib rules for them. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/23141] New: objcopy: SIGSEGV in bfd_elf_set_group_contents
https://sourceware.org/bugzilla/show_bug.cgi?id=23141 Bug ID: 23141 Summary: objcopy: SIGSEGV in bfd_elf_set_group_contents Product: binutils Version: 2.31 (HEAD) Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: paolo.montesel+sourceware at gmail dot com Target Milestone: --- Created attachment 10991 --> https://sourceware.org/bugzilla/attachment.cgi?id=10991&action=edit objcopy crash As part of a tool I'm writing I fuzzed binutils. The attached file makes objcopy crash inside `bfd_elf_set_group_contents`: Program received signal SIGSEGV, Segmentation fault. 0x0043bc33 in bfd_elf_set_group_contents (abfd=0x7322e0, sec=0x738f20, failedptrarg=0x7fffd83c) at elf.c:3462 3462 symindx = elf_section_syms (abfd)[sec->index]->udata.i; #0 0x0043bc33 in bfd_elf_set_group_contents (abfd=0x7322e0, sec=0x738f20, failedptrarg=0x7fffd83c) at elf.c:3462 #1 0x0042639c in bfd_map_over_sections (abfd=abfd@entry=0x7322e0, operation=operation@entry=0x43b9e0 , user_storage=user_storage@entry=0x7fffd83c) at section.c:1391 #2 0x00443807 in _bfd_elf_compute_section_file_positions (abfd=, link_info=link_info@entry=0x0) at elf.c:4250 #3 0x00448f6c in _bfd_elf_set_section_contents (abfd=0x7322e0, section=0x738df0, location=0x734620, offset=0, count=19) at elf.c:8854 #4 0x004264f4 in bfd_set_section_contents (abfd=abfd@entry=0x7322e0, section=section@entry=0x738df0, location=0x734620, offset=offset@entry=0, count=) at section.c:1529 #5 0x004070f3 in copy_section (ibfd=, isection=, obfdarg=0x7322e0) at objcopy.c:4108 #6 0x0042639c in bfd_map_over_sections (abfd=abfd@entry=0x72ef40, operation=operation@entry=0x406e20 , user_storage=user_storage@entry=0x7322e0) at section.c:1391 #7 0x00408864 in copy_object (ibfd=, obfd=, input_arch=) at objcopy.c:3057 #8 0x0040a63a in copy_file (input_filename=input_filename@entry=0x7fffe131 "id:08,sig:1"..., output_filename=output_filename@entry=0x7fffe164 "/dev/null", input_target=input_target@entry=0x0, output_target=, output_target@entry=0x0, input_arch=input_arch@entry=0x0) at objcopy.c:3532 #9 0x00403334 in copy_main (argv=, argc=) at objcopy.c:5484 #10 main (argc=argc@entry=3, argv=argv@entry=0x7fffdd88) at objcopy.c:5588 #11 0x77829830 in __libc_start_main (main=0x402ea0 , argc=3, argv=0x7fffdd88, init=, fini=, rtld_fini=, stack_end=0x7fffdd78) at ../csu/libc-start.c:291 #12 0x004055c9 in _start () Compiled and tried against a freshly cloned repo. It also works on Ubuntu Xenial's binutils (2.26.1). -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/23142] New: objcopy: SIGSEGV in is_strip_section
https://sourceware.org/bugzilla/show_bug.cgi?id=23142 Bug ID: 23142 Summary: objcopy: SIGSEGV in is_strip_section Product: binutils Version: 2.31 (HEAD) Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: paolo.montesel+sourceware at gmail dot com Target Milestone: --- Created attachment 10992 --> https://sourceware.org/bugzilla/attachment.cgi?id=10992&action=edit crash As part of a tool I'm writing I fuzzed binutils. The attached file makes objcopy crash inside `is_strip_section`: Program received signal SIGSEGV, Segmentation fault. is_strip_section (sec=sec@entry=0x730950, abfd=0x72ef40) at objcopy.c:1352 1352gname = gsym->name; #0 is_strip_section (sec=sec@entry=0x730950, abfd=0x72ef40) at objcopy.c:1352 #1 0x00406db5 in skip_section (ibfd=0x72ef40, isection=0x730950, skip_copy=1) at objcopy.c:3849 #2 0x00406e4f in copy_section (ibfd=0x72ef40, isection=0x730950, obfdarg=0x7322e0) at objcopy.c:4026 #3 0x0042639c in bfd_map_over_sections (abfd=abfd@entry=0x72ef40, operation=operation@entry=0x406e20 , user_storage=user_storage@entry=0x7322e0) at section.c:1391 #4 0x00408864 in copy_object (ibfd=, obfd=, input_arch=) at objcopy.c:3057 #5 0x0040a63a in copy_file (input_filename=input_filename@entry=0x7fffe131 "id:10,sig:1"..., output_filename=output_filename@entry=0x7fffe164 "/dev/null", input_target=input_target@entry=0x0, output_target=, output_target@entry=0x0, input_arch=input_arch@entry=0x0) at objcopy.c:3532 #6 0x00403334 in copy_main (argv=, argc=) at objcopy.c:5484 #7 main (argc=argc@entry=3, argv=argv@entry=0x7fffdd88) at objcopy.c:5588 #8 0x77829830 in __libc_start_main (main=0x402ea0 , argc=3, argv=0x7fffdd88, init=, fini=, rtld_fini=, stack_end=0x7fffdd78) at ../csu/libc-start.c:291 #9 0x004055c9 in _start () Compiled and tried against a freshly cloned repo. It also works on Ubuntu Xenial's binutils (2.26.1). -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/23142] objcopy: SIGSEGV in is_strip_section
https://sourceware.org/bugzilla/show_bug.cgi?id=23142 --- Comment #1 from Paolo Montesel --- Created attachment 10993 --> https://sourceware.org/bugzilla/attachment.cgi?id=10993&action=edit crash 2 -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/23142] objcopy: SIGSEGV in is_strip_section
https://sourceware.org/bugzilla/show_bug.cgi?id=23142 --- Comment #3 from Paolo Montesel --- Crash 1 and 2 are actually the same file, sorry. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/23142] objcopy: SIGSEGV in is_strip_section
https://sourceware.org/bugzilla/show_bug.cgi?id=23142 --- Comment #2 from Paolo Montesel --- Created attachment 10994 --> https://sourceware.org/bugzilla/attachment.cgi?id=10994&action=edit crash 3 -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/23143] New: objcopy: SIGSEGV in htab_hash_string
https://sourceware.org/bugzilla/show_bug.cgi?id=23143 Bug ID: 23143 Summary: objcopy: SIGSEGV in htab_hash_string Product: binutils Version: 2.31 (HEAD) Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: paolo.montesel+sourceware at gmail dot com Target Milestone: --- Created attachment 10995 --> https://sourceware.org/bugzilla/attachment.cgi?id=10995&action=edit crash As part of a tool I'm writing I fuzzed binutils. The attached file makes objcopy crash inside `htab_hash_string`: Program received signal SIGSEGV, Segmentation fault. htab_hash_string (p=0xde89483b74ff8548) at ./hashtab.c:838 838 while ((c = *str++) != 0) #0 htab_hash_string (p=0xde89483b74ff8548) at ./hashtab.c:838 #1 0x004c7151 in htab_find (htab=0x72e1c0, element=0xde89483b74ff8548) at ./hashtab.c:621 #2 0x0040685c in is_specified_symbol (name=, htab=) at objcopy.c:1195 #3 0x00406904 in is_strip_section (sec=sec@entry=0x730950, abfd=0x72ef40) at objcopy.c:1357 #4 0x00406db5 in skip_section (ibfd=0x72ef40, isection=0x730950, skip_copy=1) at objcopy.c:3849 #5 0x00406e4f in copy_section (ibfd=0x72ef40, isection=0x730950, obfdarg=0x7322e0) at objcopy.c:4026 #6 0x0042639c in bfd_map_over_sections (abfd=abfd@entry=0x72ef40, operation=operation@entry=0x406e20 , user_storage=user_storage@entry=0x7322e0) at section.c:1391 #7 0x00408864 in copy_object (ibfd=, obfd=, input_arch=) at objcopy.c:3057 #8 0x0040a63a in copy_file (input_filename=input_filename@entry=0x7fffe139 "id:11,sig:1"..., output_filename=output_filename@entry=0x7fffe164 "/dev/null", input_target=input_target@entry=0x0, output_target=, output_target@entry=0x0, input_arch=input_arch@entry=0x0) at objcopy.c:3532 #9 0x00403334 in copy_main (argv=, argc=) at objcopy.c:5484 #10 main (argc=argc@entry=3, argv=argv@entry=0x7fffdd98) at objcopy.c:5588 #11 0x77829830 in __libc_start_main (main=0x402ea0 , argc=3, argv=0x7fffdd98, init=, fini=, rtld_fini=, stack_end=0x7fffdd88) at ../csu/libc-start.c:291 #12 0x004055c9 in _start () Compiled and tried against a freshly cloned repo. It also works on Ubuntu Xenial's binutils (2.26.1). X86_64 machine. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/23144] New: strip-new/objcopy: SIGSEGV in group_signature
https://sourceware.org/bugzilla/show_bug.cgi?id=23144 Bug ID: 23144 Summary: strip-new/objcopy: SIGSEGV in group_signature Product: binutils Version: 2.31 (HEAD) Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: paolo.montesel+sourceware at gmail dot com Target Milestone: --- Created attachment 10996 --> https://sourceware.org/bugzilla/attachment.cgi?id=10996&action=edit crash As part of a tool I'm writing I fuzzed binutils. The attached file makes strip-new/objcopy crash inside `group_signature`: Program received signal SIGSEGV, Segmentation fault. 0x004063f6 in group_signature (group=0x72d950, group=0x72d950) at objcopy.c:1222 1222return isympp[ghdr->sh_info - 1]; #0 0x004063f6 in group_signature (group=0x72d950, group=0x72d950) at objcopy.c:1222 #1 0x0040684f in is_strip_section (sec=sec@entry=0x72d950, abfd=0x72bf40) at objcopy.c:1350 #2 0x0040690f in setup_section (ibfd=0x72bf40, isection=0x72d950, obfdarg=0x72f2e0) at objcopy.c:3677 #3 0x0042602c in bfd_map_over_sections (abfd=abfd@entry=0x72bf40, operation=operation@entry=0x4068f0 , user_storage=user_storage@entry=0x72f2e0) at section.c:1391 #4 0x004079ea in copy_object (ibfd=0x72bf40, obfd=0x72f2e0, input_arch=) at objcopy.c:2627 #5 0x0040a5aa in copy_file (input_filename=0x7fffe136 "id:12,sig:1"..., output_filename=output_filename@entry=0x7fffe164 "/dev/null", input_target=input_target@entry=0x0, output_target=, output_target@entry=0x0, input_arch=input_arch@entry=0x0) at objcopy.c:3532 #6 0x00404929 in strip_main (argv=, argc=) at objcopy.c:4476 #7 main (argc=argc@entry=4, argv=argv@entry=0x7fffdd78) at objcopy.c:5586 #8 0x77829830 in __libc_start_main (main=0x402e10 , argc=4, argv=0x7fffdd78, init=, fini=, rtld_fini=, stack_end=0x7fffdd68) at ../csu/libc-start.c:291 #9 0x00405539 in _start () Compiled and tried against a freshly cloned repo. It also works on Ubuntu Xenial's binutils (2.26.1). -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils