- Fix install(1) usage to be compatible with OpenBSD's install(1). - Allow overriding the location of Samba's smbd, From Brad - Remove PROVIDE_HIDDEN and ONLY_IF_{RO,RW} from linker scripts to make them work with older binutils versions. Fixes *-bsd-user build on OpenBSD 4.9 which ships binutils 2.15. From Gerd Hoffmann <kraxel at redhat dot com>
45 lines
1.6 KiB
Plaintext
45 lines
1.6 KiB
Plaintext
$OpenBSD: patch-x86_64_ld,v 1.1 2011/09/21 09:02:30 sthen Exp $
|
|
--- x86_64.ld.orig Sat Aug 27 18:03:20 2011
|
|
+++ x86_64.ld Sat Aug 27 18:03:40 2011
|
|
@@ -38,16 +38,16 @@ SECTIONS
|
|
.rel.plt :
|
|
{
|
|
*(.rel.plt)
|
|
- PROVIDE_HIDDEN (__rel_iplt_start = .);
|
|
+ PROVIDE (__rel_iplt_start = .);
|
|
*(.rel.iplt)
|
|
- PROVIDE_HIDDEN (__rel_iplt_end = .);
|
|
+ PROVIDE (__rel_iplt_end = .);
|
|
}
|
|
.rela.plt :
|
|
{
|
|
*(.rela.plt)
|
|
- PROVIDE_HIDDEN (__rela_iplt_start = .);
|
|
+ PROVIDE (__rela_iplt_start = .);
|
|
*(.rela.iplt)
|
|
- PROVIDE_HIDDEN (__rela_iplt_end = .);
|
|
+ PROVIDE (__rela_iplt_end = .);
|
|
}
|
|
.init :
|
|
{
|
|
@@ -70,8 +70,6 @@ SECTIONS
|
|
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
|
|
.rodata1 : { *(.rodata1) }
|
|
.eh_frame_hdr : { *(.eh_frame_hdr) }
|
|
- .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }
|
|
- .gcc_except_table : ONLY_IF_RO { *(.gcc_except_table) }
|
|
/* Adjust the address for the data segment. We want to adjust up to
|
|
the same address within the page on the next page up. */
|
|
. = ALIGN (0x100000) - ((0x100000 - .) & (0x100000 - 1)); . = DATA_SEGMENT_ALIGN (0x100000, 0x1000);
|
|
@@ -97,8 +95,8 @@ SECTIONS
|
|
.data1 : { *(.data1) }
|
|
.tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
|
|
.tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
|
|
- .eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) }
|
|
- .gcc_except_table : ONLY_IF_RW { *(.gcc_except_table) }
|
|
+ .eh_frame : { KEEP (*(.eh_frame)) }
|
|
+ .gcc_except_table : { *(.gcc_except_table) }
|
|
.dynamic : { *(.dynamic) }
|
|
.ctors :
|
|
{
|