Fix link errors with GCC 10 and binutils 2.34 on Fedora
authorJohn Ousterhout <ouster@cs.stanford.edu>
Thu, 26 Mar 2020 18:28:48 +0000 (11:28 -0700)
committerJohn Ousterhout <ouster@cs.stanford.edu>
Thu, 26 Mar 2020 18:28:48 +0000 (11:28 -0700)
commit520ff4dd2a106a4d4a21468a72ba820c8ea7d242
tree6fd6b2f80a25a4aa47af1c33b1c14b5b95043c2d
parent218e4395786e51487d27ad432249c27687667b7c
Fix link errors with GCC 10 and binutils 2.34 on Fedora
Fix the following compile errors:

ld: ... multiple definition of `fs_device'; ... first defined here

and

ld: ... multiple definition of `test_name'; ... first defined here.

These seem to result in a change in how GCC and the linker handle strong
and weak symbols.

Signed-off-by: W. Michael Petullo <mike@flyn.org>
12 files changed:
src/filesys/filesys.h
src/tests/filesys/base/child-syn-read.c
src/tests/filesys/extended/child-syn-rw.c
src/tests/userprog/child-close.c
src/tests/userprog/child-rox.c
src/tests/userprog/child-simple.c
src/tests/userprog/multi-recurse.c
src/tests/userprog/no-vm/multi-oom.c
src/tests/vm/child-linear.c
src/tests/vm/child-qsort-mm.c
src/tests/vm/child-qsort.c
src/tests/vm/child-sort.c