[Bug binutils/23788] New: objcopy: src/steddNxf: failed to find link section for section 24

2018-10-17 Thread mewbaz at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23788

Bug ID: 23788
   Summary: objcopy: src/steddNxf: failed to find link section for
section 24
   Product: binutils
   Version: unspecified
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mewbaz at gmail dot com
  Target Milestone: ---

The latest version of Clang adds a section called "llvm_addrsig" that is not
yet recognized by objcopy.

The issue was originally reported in the WLLVM project at
https://github.com/travitch/whole-program-llvm/issues/75#issuecomment-430638246

When compiling Coreutils using WLLVM, the following errors are displayed from
objcopy.

  CCLD src/split
  CC   src/stat.o
objcopy: src/stkShpi9: failed to find link section for section 30
objcopy: src/stkShpi9: failed to find link section for section 30

Cheers,
Robin

-- 
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/23788] objcopy: src/steddNxf: failed to find link section for section 24

2018-10-18 Thread mewbaz at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23788

--- Comment #2 from mewbaz at gmail dot com ---
Example based on SQLite3:
https://sqlite.org/2018/sqlite-amalgamation-3250200.zip

u@x1 ~/D/p/y/0/f/l/sqlite-amalgamation-3250200> cat foo
asdf
u@x1 ~/D/p/y/0/f/l/sqlite-amalgamation-3250200> clang-7 -c shell.c
u@x1 ~/D/p/y/0/f/l/sqlite-amalgamation-3250200> 
objcopy --add-section .llvm_bc=foo shell.o
objcopy: stlck9zT: failed to find link section for section 17
objcopy: stlck9zT: failed to find link section for section 17

-- 
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/23788] objcopy: src/steddNxf: failed to find link section for section 24

2018-10-18 Thread mewbaz at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23788

--- Comment #3 from mewbaz at gmail dot com ---
And these versions are used:

u@x1 ~> clang --version
clang version 7.0.0 (tags/RELEASE_700/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

u@x1 ~> objcopy --version
GNU objcopy (GNU Binutils) 2.31.1
Copyright (C) 2018 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.

-- 
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/23788] objcopy: src/steddNxf: failed to find link section for section 24

2018-10-19 Thread mewbaz at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23788

--- Comment #5 from mewbaz at gmail dot com ---
Created attachment 11346
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11346&action=edit
Produced with clang-7 -c shell.c from SQLite3.

-- 
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