[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/27149] New: -shared should not produce executable files
From: |
giecrilj at stegny dot 2a.pl |
Subject: |
[Bug ld/27149] New: -shared should not produce executable files |
Date: |
Mon, 04 Jan 2021 15:10:02 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=27149
Bug ID: 27149
Summary: -shared should not produce executable files
Product: binutils
Version: 2.35.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: giecrilj at stegny dot 2a.pl
Target Milestone: ---
* The version of 'ld'. 'ld' announces it if you start it with the
'--version' argument.
GNU ld (GNU Binutils; openSUSE Tumbleweed) 2.35.1.20201112-1
* Any patches you may have applied to the 'ld' source, including any
patches made to the 'BFD' library.
binutils-2.35-branch.diff.gz
binutils-skip-rpaths.patch
s390-biarch.diff
x86-64-biarch.patch
unit-at-a-time.patch
ld-relro.diff
enable-targets-gold.diffs390-pic-dso.diff
binutils-build-as-needed.diff
binutils-bfd_h.patch
aarch64-common-pagesize.patch
binutils-pr22868.diff
binutils-fix-invalid-op-errata.diff
binutils-revert-nm-symversion.diff
binutils-fix-abierrormsg.diff
add-ulp-section.diff
* The type of machine you are using, and the operating system name
and version number.
Linux localhost.localdomain 5.10.3-1-default #1 SMP Mon Dec 28 09:29:24 UTC
2020 (73f6c2f) x86_64 x86_64 x86_64 GNU/Linux
* What compiler (and its version) was used to compile 'ld'--e.g.
"'gcc-2.7'".
gcc-10
* The command arguments you gave the linker to link your example and
observe the bug. To guarantee you will not omit something
important, list them all. A copy of the Makefile (or the output
from make) is sufficient.
ld -shared test.o
* A complete input file, or set of input files, that will reproduce
the bug. It is generally most helpful to send the actual object
files provided that they are reasonably small. Say no more than
10K. For bigger files you can either make them available by FTP or
HTTP or else state that you are willing to send the object file(s)
to whomever requests them. (Note - your email will be going to a
mailing list, so we do not want to clog it up with large
attachments). But small attachments are best.
f0VMRgIBAQAAAAAAAAAAAAEAPgABAAA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
AAAAAAAAAAAAAJgAAAAAAAAAqAAAAAAAAAAHAAAABwAAAAgAAAAAAAAAGAAAAAAAAAAJAAAAAwAA
AAAAAAAAAAAAAAAAAAAAAABAAQAAAAAAAAgAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAA
EQAAAAMAAAAAAAAAAAAAAAAAAAAAAAAASAEAAAAAAABFAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAA
AAAAAAAAAA==
* A description of what behavior you observe that you believe is
incorrect. For example, "It gets a fatal signal."
The result, a.out, is executable.
* If you wish to suggest changes to the 'ld' source, send us context
diffs, as generated by 'diff' with the '-u', '-c', or '-p' option.
Always send diffs from the old file to the new file. If you even
discuss something in the 'ld' source, refer to it by context, not
by line number.
ld should not produce an executable result when building a shared library.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/27149] New: -shared should not produce executable files,
giecrilj at stegny dot 2a.pl <=