[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/22011] New: glibc math/test-matherr.c fails with gold
From: |
markus at trippelsdorf dot de |
Subject: |
[Bug gold/22011] New: glibc math/test-matherr.c fails with gold |
Date: |
Fri, 25 Aug 2017 17:12:55 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22011
Bug ID: 22011
Summary: glibc math/test-matherr.c fails with gold
Product: binutils
Version: 2.30 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: gold
Assignee: ccoutant at gmail dot com
Reporter: markus at trippelsdorf dot de
CC: ian at airs dot com
Target Milestone: ---
address@hidden math % cat test.i
extern double acos(double __x) __attribute__((__nothrow__));
typedef enum {
_IEEE_ = -1,
_SVID_,
_XOPEN_,
_POSIX_,
_ISOC_
} _LIB_VERSION_TYPE;
extern _LIB_VERSION_TYPE _LIB_VERSION;
struct exception {
int type;
char *name;
double arg1;
double arg2;
double retval;
};
__asm__(".symver matherr,address@hidden");
__asm__(".symver _LIB_VERSION,address@hidden");
static int fail = 1;
int matherr(struct exception *s) {
__builtin_printf("matherr is working\n");
fail = 0;
return 1;
}
int main() {
_LIB_VERSION = _SVID_;
acos(2.0);
return fail;
}
address@hidden math % gcc test.i -fuse-ld=bfd -lm
address@hidden math % ./a.out
matherr is working
address@hidden math % gcc test.i -fuse-ld=gold -lm
address@hidden math % ./a.out
acos: DOMAIN error
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gold/22011] New: glibc math/test-matherr.c fails with gold,
markus at trippelsdorf dot de <=