File: linker-script-try-fix

package info (click to toggle)
cbmc 6.6.0-4
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 153,852 kB
  • sloc: cpp: 386,459; ansic: 114,466; java: 28,405; python: 6,003; yacc: 4,552; makefile: 4,041; lex: 2,487; xml: 2,388; sh: 2,050; perl: 557; pascal: 184; javascript: 163; ada: 36
file content (74 lines) | stat: -rw-r--r-- 2,547 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Description: Trying to fix PPC linker script regression test failures
 Just a try.
 .
 cbmc (5.84.0-7) unstableUNRELEASED; urgency=low
 .
   * Enable fortify hardening
   * Fix autopkgtest
Author: Michael Tautschnig <mt@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2023-06-26

Index: cbmc-5.84.0/regression/goto-gcc/linker_script_start+end/main.c
===================================================================
--- cbmc-5.84.0.orig/regression/goto-gcc/linker_script_start+end/main.c
+++ cbmc-5.84.0/regression/goto-gcc/linker_script_start+end/main.c
@@ -2,13 +2,13 @@ extern char src_start[];
 extern char src_end[];
 extern char dst_start[];
 
-void *memcpy(void *dest, void *src, unsigned n)
+void *memcpy(void *dest, void *src, unsigned long n)
 {
   return (void *)0;
 }
 
 int main()
 {
-  memcpy(dst_start, src_start, (unsigned)src_end - (unsigned)src_start);
+  memcpy(dst_start, src_start, (unsigned long)src_end - (unsigned long)src_start);
   return 0;
 }
Index: cbmc-5.84.0/regression/goto-gcc/linker_script_start+size/main.c
===================================================================
--- cbmc-5.84.0.orig/regression/goto-gcc/linker_script_start+size/main.c
+++ cbmc-5.84.0/regression/goto-gcc/linker_script_start+size/main.c
@@ -2,13 +2,13 @@ extern char src_start[];
 extern char src_size[];
 extern char dst_start[];
 
-void *memcpy(void *dest, void *src, unsigned n)
+void *memcpy(void *dest, void *src, unsigned long n)
 {
   return (void *)0;
 }
 
 int main()
 {
-  memcpy(dst_start, src_start, (unsigned)src_size);
+  memcpy(dst_start, src_start, (unsigned long)src_size);
   return 0;
 }
Index: cbmc-5.84.0/regression/goto-gcc/linker_script_symbol-only/main.c
===================================================================
--- cbmc-5.84.0.orig/regression/goto-gcc/linker_script_symbol-only/main.c
+++ cbmc-5.84.0/regression/goto-gcc/linker_script_symbol-only/main.c
@@ -2,6 +2,6 @@ extern char sym[];
 
 int main()
 {
-  int foo = (int)sym;
+  long int foo = (long int)sym;
   return 0;
 }