x86_64/i386 fenv: Replace symlink with include fenv_stub.c

Having symlinks for these files led to an issue reported to the RTEMS
Project that showed up using some tar for native Windows to unpack the
newlib sources.  It creates symlinks in the tar file as copies of the
files the symlinks point to.  If the links appear in the tar file before
the source exists, it cannot copy the file.

The solution in this patch is to convert the files that are symbolic
links into simple files which include the file they were linked to.
This should be more portable and avoids the symbolinc link problem.
This commit is contained in:
Joel Sherrill 2020-02-25 07:38:33 -06:00 committed by Corinna Vinschen
parent 17528b9d2c
commit fbaa096772
23 changed files with 161 additions and 23 deletions

View File

@ -1 +0,0 @@
../../fenv/fenv_stub.c

View File

@ -0,0 +1,7 @@
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* (c) Copyright 2019 Joel Sherrill <joel@rtems.org>
*/
#include "../../fenv/fenv_stub.c"

View File

@ -1 +0,0 @@
../../fenv/fenv_stub.c

View File

@ -0,0 +1,7 @@
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* (c) Copyright 2019 Joel Sherrill <joel@rtems.org>
*/
#include "../../fenv/fenv_stub.c"

View File

@ -1 +0,0 @@
../../fenv/fenv_stub.c

View File

@ -0,0 +1,7 @@
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* (c) Copyright 2019 Joel Sherrill <joel@rtems.org>
*/
#include "../../fenv/fenv_stub.c"

View File

@ -1 +0,0 @@
../../fenv/fenv_stub.c

View File

@ -0,0 +1,7 @@
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* (c) Copyright 2019 Joel Sherrill <joel@rtems.org>
*/
#include "../../fenv/fenv_stub.c"

View File

@ -1 +0,0 @@
../../fenv/fenv_stub.c

View File

@ -0,0 +1,7 @@
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* (c) Copyright 2019 Joel Sherrill <joel@rtems.org>
*/
#include "../../fenv/fenv_stub.c"

View File

@ -1 +0,0 @@
../x86_64/fenv.c

View File

@ -0,0 +1,7 @@
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* (c) Copyright 2019 Joel Sherrill <joel@rtems.org>
*/
#include "../../fenv/fenv_stub.c"

View File

@ -1 +0,0 @@
../../fenv/fenv_stub.c

View File

@ -0,0 +1,7 @@
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* (c) Copyright 2019 Joel Sherrill <joel@rtems.org>
*/
#include "../../fenv/fenv_stub.c"

View File

@ -1 +0,0 @@
../../fenv/fenv_stub.c

View File

@ -0,0 +1,7 @@
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* (c) Copyright 2019 Joel Sherrill <joel@rtems.org>
*/
#include "../../fenv/fenv_stub.c"

View File

@ -1 +0,0 @@
../../fenv/fenv_stub.c

View File

@ -0,0 +1,7 @@
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* (c) Copyright 2019 Joel Sherrill <joel@rtems.org>
*/
#include "../../fenv/fenv_stub.c"

View File

@ -1 +0,0 @@
../../fenv/fenv_stub.c

View File

@ -0,0 +1,7 @@
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* (c) Copyright 2019 Joel Sherrill <joel@rtems.org>
*/
#include "../../fenv/fenv_stub.c"

View File

@ -1 +0,0 @@
../../fenv/fenv_stub.c

View File

@ -0,0 +1,7 @@
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* (c) Copyright 2019 Joel Sherrill <joel@rtems.org>
*/
#include "../../fenv/fenv_stub.c"

View File

@ -1 +0,0 @@
../../fenv/fenv_stub.c

View File

@ -0,0 +1,7 @@
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* (c) Copyright 2019 Joel Sherrill <joel@rtems.org>
*/
#include "../../fenv/fenv_stub.c"

View File

@ -1 +0,0 @@
../../fenv/fenv_stub.c

View File

@ -0,0 +1,7 @@
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* (c) Copyright 2019 Joel Sherrill <joel@rtems.org>
*/
#include "../../fenv/fenv_stub.c"

View File

@ -1 +0,0 @@
../../fenv/fenv_stub.c

View File

@ -0,0 +1,7 @@
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* (c) Copyright 2019 Joel Sherrill <joel@rtems.org>
*/
#include "../../fenv/fenv_stub.c"

View File

@ -1 +0,0 @@
../../fenv/fenv_stub.c

View File

@ -0,0 +1,7 @@
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* (c) Copyright 2019 Joel Sherrill <joel@rtems.org>
*/
#include "../../fenv/fenv_stub.c"

View File

@ -1 +0,0 @@
../../fenv/fenv_stub.c

View File

@ -0,0 +1,7 @@
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* (c) Copyright 2019 Joel Sherrill <joel@rtems.org>
*/
#include "../../fenv/fenv_stub.c"

View File

@ -1 +0,0 @@
../../fenv/fenv_stub.c

View File

@ -0,0 +1,7 @@
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* (c) Copyright 2019 Joel Sherrill <joel@rtems.org>
*/
#include "../../fenv/fenv_stub.c"

View File

@ -1 +0,0 @@
../../fenv/fenv_stub.c

View File

@ -0,0 +1,7 @@
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* (c) Copyright 2019 Joel Sherrill <joel@rtems.org>
*/
#include "../../fenv/fenv_stub.c"

View File

@ -1 +0,0 @@
../../fenv/fenv_stub.c

View File

@ -0,0 +1,7 @@
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* (c) Copyright 2019 Joel Sherrill <joel@rtems.org>
*/
#include "../../fenv/fenv_stub.c"

View File

@ -1 +0,0 @@
../../fenv/fenv_stub.c

View File

@ -0,0 +1,7 @@
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* (c) Copyright 2019 Joel Sherrill <joel@rtems.org>
*/
#include "../../fenv/fenv_stub.c"

View File

@ -1 +0,0 @@
../../fenv/fenv_stub.c

View File

@ -0,0 +1,7 @@
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* (c) Copyright 2019 Joel Sherrill <joel@rtems.org>
*/
#include "../../fenv/fenv_stub.c"

View File

@ -1 +0,0 @@
../../fenv/fenv_stub.c

View File

@ -0,0 +1,7 @@
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* (c) Copyright 2019 Joel Sherrill <joel@rtems.org>
*/
#include "../../fenv/fenv_stub.c"

View File

@ -1 +0,0 @@
../../fenv/fenv_stub.c

View File

@ -0,0 +1,7 @@
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* (c) Copyright 2019 Joel Sherrill <joel@rtems.org>
*/
#include "../../fenv/fenv_stub.c"