Avoid using common symbols in v850 libgloss

I've had this lying around for probably a year or two at this point.
It just changes all the instance of "errno" from a common symbol to an
extern.  I can't offhand recall where the actual definition is, but it
certainly exists in the generic code.
This commit is contained in:
Jeff Law 2022-03-19 20:01:33 -04:00
parent 090797e3d3
commit 0c8679e080
52 changed files with 52 additions and 52 deletions

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -4,7 +4,7 @@
#include "sys/syscall.h"
#include "sys/time.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -4,7 +4,7 @@
#include "sys/syscall.h"
#include <reent.h>
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -195,7 +195,7 @@ SECTIONS
.debug_typenames 0 : { *(.debug_typenames) }
.debug_varnames 0 : { *(.debug_varnames) }
/* User stack. */
.stack 0x200000 :
.stack 0x300000 :
{
__stack = .;
*(.stack)

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -4,7 +4,7 @@
#include "sys/syscall.h"
#include "sys/times.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -4,7 +4,7 @@
#include "sys/syscall.h"
#include "sys/time.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -4,7 +4,7 @@
#include "sys/syscall.h"
#include <reent.h>
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -4,7 +4,7 @@
#include "sys/syscall.h"
#include "sys/times.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);

View File

@ -3,7 +3,7 @@
#include <sys/stat.h>
#include "sys/syscall.h"
int errno;
extern int errno;
int __trap0 (int function, int p1, int p2, int p3);