Author: Dimitry Andric Taken from: https://sourceforge.net/p/elftoolchain/code/3879/ --- a/ld/amd64.h +++ b/ld/amd64.h @@ -26,6 +26,6 @@ * $Id$ */ -char *amd64_script; +extern char *amd64_script; void amd64_register(struct ld *); --- a/ld/i386.h +++ b/ld/i386.h @@ -26,6 +26,6 @@ * $Id$ */ -char *i386_script; +extern char *i386_script; void i386_register(struct ld *); --- a/ld/mips.h +++ b/ld/mips.h @@ -23,7 +23,7 @@ * SUCH DAMAGE. */ -char *littlemips_script; -char *bigmips_script; +extern char *littlemips_script; +extern char *bigmips_script; void mips_register(struct ld *);