[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/17735] New: gold doesn't set ELFOSABI_GNU for IFUNC
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug gold/17735] New: gold doesn't set ELFOSABI_GNU for IFUNC |
Date: |
Sat, 20 Dec 2014 01:18:46 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=17735
Bug ID: 17735
Summary: gold doesn't set ELFOSABI_GNU for IFUNC
Product: binutils
Version: 2.26 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: gold
Assignee: ccoutant at google dot com
Reporter: hjl.tools at gmail dot com
CC: ian at airs dot com
gold doesn't set ELFOSABI_GNU for IFUNC:
address@hidden tmp]$ cat libb.c
void new_sd_get_seats(void);
static void (*resolve_sd_get_seats(void)) (void) {
return new_sd_get_seats;
}
void sd_get_seats(void) __attribute__((ifunc("resolve_sd_get_seats")));
address@hidden tmp]$ gcc -fpic -c libb.c
address@hidden tmp]$ ld -shared libb.o
address@hidden tmp]$ readelf -h a.out | grep OS/ABI
OS/ABI: UNIX - GNU
address@hidden tmp]$ ld.gold -shared libb.o
address@hidden tmp]$ readelf -h a.out | grep OS/ABI
OS/ABI: UNIX - System V
address@hidden tmp]$
The same goes for STB_GNU_UNIQUE:
address@hidden tmp]$ cat type.s
.data
.type unique_global,%gnu_unique_object
unique_global:
.byte 0x0
.size unique_global,1
address@hidden tmp]$ gcc -c type.s
address@hidden tmp]$ ld -shared type.o
address@hidden tmp]$ readelf -h a.out | grep OS/ABI
OS/ABI: UNIX - GNU
address@hidden tmp]$ ld.gold -shared type.o
address@hidden tmp]$ readelf -h a.out | grep OS/ABI
OS/ABI: UNIX - System V
address@hidden tmp]$
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gold/17735] New: gold doesn't set ELFOSABI_GNU for IFUNC,
hjl.tools at gmail dot com <=