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)
commit508ed0e02b5e62b284275c22c4752c2b972d0249
tree847b536cb8322639931dd7f80daffffa523082ac
parent106c9d1b4689f28e372116d3d882bd5a1578bad3
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