bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/26065] aarch64: binutils-gdb/ld/testsuite/ld-elf symbolic tests


From: adhemerval.zanella at linaro dot org
Subject: [Bug ld/26065] aarch64: binutils-gdb/ld/testsuite/ld-elf symbolic tests dl4e and dl4f fail
Date: Fri, 05 Jun 2020 13:58:37 +0000

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

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adhemerval.zanella at linaro 
dot o
                   |                            |rg

--- Comment #4 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> 
---
I can't reproduce it either by running binutils testcase on glibc 2.23 (ubuntu
18, binutils commit 82f06518c463badebdab653a7af4e4427c786742). 

I also tried to extract the testcase and build the testcase to run against
glibc master (9b7424215b10ae01d680ef91e10fc10f51227177) by:

---
$ cat dl4.c
#include <stdio.h>

int foo1;
int foo2;

extern void xxx1 (void);
extern void xxx2 (void);

void
bar (int x)
{
  if (foo1 == 1)
    printf ("bar OK1\n");
  else if (foo1 == 0)
    printf ("bar OK2\n");
  if (foo2 == 1)
    printf ("bar OK3\n");
  else if (foo2 == 0)
    printf ("bar OK4\n");
  foo1 = -1;
  foo2 = -1;
  xxx1 ();
  xxx2 ();
}
$ cat dl4xxx.c
#include <stdio.h>

void
xxx1 (void)
{
  printf ("DSO1\n");
}

void
xxx2 (void)
{
  printf ("DSO2\n");
}
$ cat dlmain4.c
#include <stdio.h>

extern int foo1;
extern int foo2;
extern void bar (void);

void
xxx1 (void)
{
  printf ("MAIN1\n");
}

void
xxx2 (void)
{
  printf ("MAIN2\n");
}

int
main (void)
{
  foo1 = 1;
  foo2 = 1;
  bar ();
  if (foo1 == -1)
    printf ("OK1\n");
  else if (foo1 == 1)
    printf ("OK2\n");
  if (foo2 == -1)
    printf ("OK3\n");
  else if (foo2 == 1)
    printf ("OK4\n");
  return 0;
}
$ gcc -B/home/azanella/projects/binutils/install/bin -fPIC -shared
-Wl,-Bsymbolic-functions,--dynamic-list-cpp-new -o dl4.c dl4xxx.c -o libdl4e.so
$ gcc -B/home/azanella/projects/binutils/install/bin -L. -Wl,--no-as-needed
libdl4e.so dlmain4.c -o dlmain4
--

And glibc master did not show any issue as well. Do you have more information
on to setup the environment to reproduce this?

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