[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/18735] New: multiple definition of `foo'
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/18735] New: multiple definition of `foo' |
Date: |
Wed, 29 Jul 2015 15:08:34 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=18735
Bug ID: 18735
Summary: multiple definition of `foo'
Product: binutils
Version: 2.26 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
Target Milestone: ---
address@hidden pr18720]$ cat foo1.c
#if 0
void
foo (void)
{
}
asm (".symver foo,address@hidden");
#else
void
foo (void)
{
}
asm (".symver foo,foo@@FOO");
#endif
address@hidden pr18720]$ gcc -c foo1.c
address@hidden pr18720]$
/export/build/gnu/binutils-misc/build-x86_64-linux/ld/ld-new -r foo1.o
foo1.o:(*IND*+0x0): multiple definition of `foo'
foo1.o:foo1.c:(.text+0x0): first defined here
address@hidden pr18720]$
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/18735] New: multiple definition of `foo',
hjl.tools at gmail dot com <=