-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
362 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
patches/0001-Disable-annoying-local-symbol-warning-on-bfd-linker.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
From d3254de82bf38235c4e714440a93454f91cd71d8 Mon Sep 17 00:00:00 2001 | ||
From: Kartatz <[email protected]> | ||
Date: Fri, 10 May 2024 05:12:10 +0200 | ||
Subject: [PATCH] Disable annoying 'local symbol' warning on bfd linker | ||
|
||
--- | ||
bfd/elflink.c | 5 +++-- | ||
1 file changed, 3 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/bfd/elflink.c b/bfd/elflink.c | ||
index c2494b3..6910577 100644 | ||
--- a/bfd/elflink.c | ||
+++ b/bfd/elflink.c | ||
@@ -4820,7 +4820,7 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info) | ||
bool common; | ||
bool discarded; | ||
unsigned int old_alignment; | ||
- unsigned int shindex; | ||
+ /* unsigned int shindex; */ | ||
bfd *old_bfd; | ||
bool matched; | ||
|
||
@@ -4852,13 +4852,14 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info) | ||
/* If we aren't prepared to handle locals within the globals | ||
then we'll likely segfault on a NULL symbol hash if the | ||
symbol is ever referenced in relocations. */ | ||
+ /* | ||
shindex = elf_elfheader (abfd)->e_shstrndx; | ||
name = bfd_elf_string_from_elf_section (abfd, shindex, hdr->sh_name); | ||
_bfd_error_handler (_("%pB: %s local symbol at index %lu" | ||
" (>= sh_info of %lu)"), | ||
abfd, name, (long) (isym - isymbuf + extsymoff), | ||
(long) extsymoff); | ||
- | ||
+ */ | ||
/* Dynamic object relocations are not processed by ld, so | ||
ld won't run into the problem mentioned above. */ | ||
if (dynamic) | ||
-- | ||
2.36.6 | ||
|
25 changes: 25 additions & 0 deletions
25
patches/0001-Disable-libfunc-support-for-hppa-unknown-netbsd.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 615edd6d30f1e43107b639d13661be148e197471 Mon Sep 17 00:00:00 2001 | ||
From: Kartatz <[email protected]> | ||
Date: Tue, 7 May 2024 23:43:09 +0200 | ||
Subject: [PATCH] Disable libfunc support for hppa-unknown-netbsd | ||
|
||
For some reason, it does not work for that target. The following error is printed when attempting to link a specific object file of the libgcc: | ||
|
||
/tmp/ccigQ6Ux.s: Assembler messages: | ||
/tmp/ccigQ6Ux.s:80: Error: Unknown opcode: `stws|stw %r23,-16(%sp)' | ||
/tmp/ccigQ6Ux.s:83: Error: Invalid operands | ||
|
||
I do not know if this is a GCC bug or it just happens that our target does not support this feature. | ||
--- | ||
diff --git a/libgcc/config/pa/t-netbsd b/libgcc/config/pa/t-netbsd | ||
index 13943940a..8b99068ce 100644 | ||
--- a/libgcc/config/pa/t-netbsd | ||
+++ b/libgcc/config/pa/t-netbsd | ||
@@ -7,4 +7,3 @@ LIB1ASMFUNCS = _divI _divU _remI _remU _div_const _mulI _dyncall | ||
HOST_LIBGCC2_CFLAGS += -DELF=1 -DLINUX=1 | ||
|
||
LIB2ADD = $(srcdir)/config/pa/fptr.c | ||
-LIB2ADD_ST = $(srcdir)/config/pa/sync-libfuncs.c | ||
-- | ||
2.36.6 | ||
|
Oops, something went wrong.