All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] silo: Build with -fno-PIC to reduce size
@ 2020-04-05 18:48 Matt Turner
  2020-04-05 18:48 ` [PATCH 2/5] silo: Build with -U_FORTIFY_SOURCE Matt Turner
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Matt Turner @ 2020-04-05 18:48 UTC (permalink / raw)
  To: linux-alpha; +Cc: David S . Miller, Aaro Koskinen, Matt Turner

Otherwise the resulting image will be too large:

| ./util second.map second.aout second2.aout second.b second.b2
| Distance between two changes larger than 63K 3 84553 0

Signed-off-by: Matt Turner <mattst88@gmail.com>
---
 Rules.make | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Rules.make b/Rules.make
index 0f176db..3d0efe7 100644
--- a/Rules.make
+++ b/Rules.make
@@ -19,7 +19,7 @@ cc-option-yn = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
 		> /dev/null 2>&1; then echo "y"; else echo "n"; fi;)
 
 CFLAGS = -Os -Wall -I. -I../include -fomit-frame-pointer \
-	-fno-strict-aliasing -DSMALL_RELOC=$(SMALL_RELOC) \
+	-fno-strict-aliasing -fno-PIC -DSMALL_RELOC=$(SMALL_RELOC) \
 	-DLARGE_RELOC=$(LARGE_RELOC)
 HOSTCFLAGS = -O2 -Wall
 
-- 
2.24.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/5] silo: Build with -U_FORTIFY_SOURCE
  2020-04-05 18:48 [PATCH 1/5] silo: Build with -fno-PIC to reduce size Matt Turner
@ 2020-04-05 18:48 ` Matt Turner
  2020-04-05 18:48 ` [PATCH 3/5] silo: Fix misleading indentation Matt Turner
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Matt Turner @ 2020-04-05 18:48 UTC (permalink / raw)
  To: linux-alpha; +Cc: David S . Miller, Aaro Koskinen, Matt Turner

Otherwise the build will fail:

| ld: decompnet.o: in function `error':
| decomp.c:(.text+0x4dc): undefined reference to `__longjmp_chk'

Signed-off-by: Matt Turner <mattst88@gmail.com>
---
 Rules.make | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Rules.make b/Rules.make
index 3d0efe7..9739f7a 100644
--- a/Rules.make
+++ b/Rules.make
@@ -19,7 +19,8 @@ cc-option-yn = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
 		> /dev/null 2>&1; then echo "y"; else echo "n"; fi;)
 
 CFLAGS = -Os -Wall -I. -I../include -fomit-frame-pointer \
-	-fno-strict-aliasing -fno-PIC -DSMALL_RELOC=$(SMALL_RELOC) \
+	-fno-strict-aliasing -fno-PIC -U_FORTIFY_SOURCE \
+	-DSMALL_RELOC=$(SMALL_RELOC) \
 	-DLARGE_RELOC=$(LARGE_RELOC)
 HOSTCFLAGS = -O2 -Wall
 
-- 
2.24.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 3/5] silo: Fix misleading indentation
  2020-04-05 18:48 [PATCH 1/5] silo: Build with -fno-PIC to reduce size Matt Turner
  2020-04-05 18:48 ` [PATCH 2/5] silo: Build with -U_FORTIFY_SOURCE Matt Turner
@ 2020-04-05 18:48 ` Matt Turner
  2020-04-05 18:48 ` [PATCH 4/5] second: Fix typo'd operator Matt Turner
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Matt Turner @ 2020-04-05 18:48 UTC (permalink / raw)
  To: linux-alpha; +Cc: David S . Miller, Aaro Koskinen, Matt Turner

Signed-off-by: Matt Turner <mattst88@gmail.com>
---
 common/stringops1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/stringops1.c b/common/stringops1.c
index 08ed4be..6edac96 100644
--- a/common/stringops1.c
+++ b/common/stringops1.c
@@ -74,7 +74,7 @@ int strlen(const char *s)
 {
 	const char *sc;
 	for (sc = s; *sc != '\0'; ++sc);
-		return sc - s;
+	return sc - s;
 }
 
 int strncmp(const char *cs, const char *ct, size_t count)
-- 
2.24.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 4/5] second: Fix typo'd operator
  2020-04-05 18:48 [PATCH 1/5] silo: Build with -fno-PIC to reduce size Matt Turner
  2020-04-05 18:48 ` [PATCH 2/5] silo: Build with -U_FORTIFY_SOURCE Matt Turner
  2020-04-05 18:48 ` [PATCH 3/5] silo: Fix misleading indentation Matt Turner
@ 2020-04-05 18:48 ` Matt Turner
  2020-04-05 18:48 ` [PATCH 5/5] second/util: Remove unused shadowed variables Matt Turner
  2020-04-05 18:54 ` [PATCH 1/5] silo: Build with -fno-PIC to reduce size Matt Turner
  4 siblings, 0 replies; 8+ messages in thread
From: Matt Turner @ 2020-04-05 18:48 UTC (permalink / raw)
  To: linux-alpha; +Cc: David S . Miller, Aaro Koskinen, Matt Turner

Signed-off-by: Matt Turner <mattst88@gmail.com>
---
 second/disk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/second/disk.c b/second/disk.c
index 40234b3..b81a465 100644
--- a/second/disk.c
+++ b/second/disk.c
@@ -293,7 +293,7 @@ int silo_disk_read(char *buff, int size, unsigned long long offset)
 	if (!net) {
 	    if (prom_vers != PROM_P1275) {
 		    if (((romvec->pv_printrev >> 16) < 2 || 
-		         ((romvec->pv_printrev >> 16) == 2 && (romvec->pv_printrev && 0xffff) < 6)) 
+		         ((romvec->pv_printrev >> 16) == 2 && (romvec->pv_printrev & 0xffff) < 6))
 		        && offset >= 0x40000000) {
 		    	printf ("Buggy old PROMs don't allow reading past 1GB from start of the disk. Send complaints to SMCC\n");
 	    		return -1;
-- 
2.24.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 5/5] second/util: Remove unused shadowed variables
  2020-04-05 18:48 [PATCH 1/5] silo: Build with -fno-PIC to reduce size Matt Turner
                   ` (2 preceding siblings ...)
  2020-04-05 18:48 ` [PATCH 4/5] second: Fix typo'd operator Matt Turner
@ 2020-04-05 18:48 ` Matt Turner
  2020-04-05 18:54 ` [PATCH 1/5] silo: Build with -fno-PIC to reduce size Matt Turner
  4 siblings, 0 replies; 8+ messages in thread
From: Matt Turner @ 2020-04-05 18:48 UTC (permalink / raw)
  To: linux-alpha; +Cc: David S . Miller, Aaro Koskinen, Matt Turner

Signed-off-by: Matt Turner <mattst88@gmail.com>
---
 second/util.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/second/util.c b/second/util.c
index 3346823..3469c34 100644
--- a/second/util.c
+++ b/second/util.c
@@ -120,8 +120,6 @@ int main(int argc, char **argv)
     int end, rodata_start, rodata_end;
     int net = 0;
     int i = 1;
-    char sym[256];
-    unsigned int addr;
 
     if (!strcmp (argv[i], "-a")) {
 	net = 1;
-- 
2.24.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/5] silo: Build with -fno-PIC to reduce size
  2020-04-05 18:48 [PATCH 1/5] silo: Build with -fno-PIC to reduce size Matt Turner
                   ` (3 preceding siblings ...)
  2020-04-05 18:48 ` [PATCH 5/5] second/util: Remove unused shadowed variables Matt Turner
@ 2020-04-05 18:54 ` Matt Turner
  4 siblings, 0 replies; 8+ messages in thread
From: Matt Turner @ 2020-04-05 18:54 UTC (permalink / raw)
  To: linux-alpha; +Cc: David S . Miller, Aaro Koskinen

On Sun, Apr 5, 2020 at 11:49 AM Matt Turner <mattst88@gmail.com> wrote:
>

*Sigh*

Sent to the wrong mailing list. My apologies.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/5] silo: Build with -fno-PIC to reduce size
@ 2020-06-03  1:38 David Miller
  0 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2020-06-03  1:38 UTC (permalink / raw)
  To: sparclinux

From: Matt Turner <mattst88@gmail.com>
Date: Sat, 23 May 2020 13:22:29 -0700

> Otherwise the resulting image will be too large:
> 
> | ./util second.map second.aout second2.aout second.b second.b2
> | Distance between two changes larger than 63K 3 84553 0
> 
> Signed-off-by: Matt Turner <mattst88@gmail.com>

Applied.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/5] silo: Build with -fno-PIC to reduce size
@ 2020-05-23 20:22 Matt Turner
  0 siblings, 0 replies; 8+ messages in thread
From: Matt Turner @ 2020-05-23 20:22 UTC (permalink / raw)
  To: sparclinux

Otherwise the resulting image will be too large:

| ./util second.map second.aout second2.aout second.b second.b2
| Distance between two changes larger than 63K 3 84553 0

Signed-off-by: Matt Turner <mattst88@gmail.com>
---
 Rules.make | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Rules.make b/Rules.make
index 0f176db..3d0efe7 100644
--- a/Rules.make
+++ b/Rules.make
@@ -19,7 +19,7 @@ cc-option-yn = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
 		> /dev/null 2>&1; then echo "y"; else echo "n"; fi;)
 
 CFLAGS = -Os -Wall -I. -I../include -fomit-frame-pointer \
-	-fno-strict-aliasing -DSMALL_RELOC=$(SMALL_RELOC) \
+	-fno-strict-aliasing -fno-PIC -DSMALL_RELOC=$(SMALL_RELOC) \
 	-DLARGE_RELOC=$(LARGE_RELOC)
 HOSTCFLAGS = -O2 -Wall
 
-- 
2.26.2

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-06-03  1:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-05 18:48 [PATCH 1/5] silo: Build with -fno-PIC to reduce size Matt Turner
2020-04-05 18:48 ` [PATCH 2/5] silo: Build with -U_FORTIFY_SOURCE Matt Turner
2020-04-05 18:48 ` [PATCH 3/5] silo: Fix misleading indentation Matt Turner
2020-04-05 18:48 ` [PATCH 4/5] second: Fix typo'd operator Matt Turner
2020-04-05 18:48 ` [PATCH 5/5] second/util: Remove unused shadowed variables Matt Turner
2020-04-05 18:54 ` [PATCH 1/5] silo: Build with -fno-PIC to reduce size Matt Turner
2020-05-23 20:22 Matt Turner
2020-06-03  1:38 David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.