bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/18720] New: No symbol version section for versioned symbol addre


From: hjl.tools at gmail dot com
Subject: [Bug ld/18720] New: No symbol version section for versioned symbol address@hidden'
Date: Sat, 25 Jul 2015 15:48:16 +0000

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

            Bug ID: 18720
           Summary: No symbol version section for versioned symbol
                    address@hidden'
           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 plt-2]$ cat indirect3a.c
extern void bar (void);
extern void foo (void);

__attribute__ ((noinline, noclone))
int
foo_p (void)
{
  return (long) &foo == 0x12345678 ? 1 : 0;
}

int
main (void)
{
  foo ();
  foo_p ();
  bar ();
  return 0;
}
address@hidden plt-2]$ cat indirect3b.c
#include <stdio.h>

void
foo (void)
{
  printf ("MAIN\n");
}

asm (".symver foo,address@hidden");
address@hidden plt-2]$ cat indirect3c.c
#include <stdio.h>

extern void foo (void);

void
foo (void)
{
  printf ("DSO\n");
}

void
bar (void)
{
  foo ();
}
address@hidden plt-2]$ make
gcc -B./ -fPIC -O2 -c -o indirect3a.o indirect3a.c
gcc -B./ -fPIC -O2 -c -o indirect3b.o indirect3b.c
gcc -B./ -fPIC -O2 -fPIC  -c -o indirect3c.o indirect3c.c
gcc -B./ -shared -o libindirect3c.so indirect3c.o
gcc -B./ -o x indirect3a.o indirect3b.o libindirect3c.so -Wl,-R.
./ld: x: No symbol version section for versioned symbol address@hidden'
./ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Makefile:22: recipe for target 'x' failed
make: *** [x] Error 1
address@hidden plt-2]$

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