Re: ld relocation error for AArm64
Bob Proulx <[email protected]> Tue, 26 Feb 2019 12:49:34 -0700
| Newsgroups | gmane.comp.gnu.utils.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hello Alan, > With this gentle urging tacked on: > /usr/bin/ld: Please report this bug. Thanks for making the report. However we don't know anything about ld here. :-) ld --help ... Report bugs to <http://www.sourceware.org/bugzilla/> However the web page https://www.gnu.org/software/binutils/ says: [email protected] For reporting bugs. Therefore mailing to [email protected] would get your report to the binutils ld maintainers. Good luck! Bob Alan O. Freier wrote: > This is the message from ld: > > gcc -g -I. -pthread -fomit-frame-pointer objs/AssignmentInstructions.o > objs/Common.o objs/InstructionInterpreter.o objs/JumpInstructions.o > objs/ControlTransfers.o objs/StackInstructions.o objs/MemoryOrganization.o > objs/BlockTransfers.o objs/Processes.o objs/Unimplemented.o objs/Test.o > objs/Float.o objs/Driver.o -o RunMesa.run > /usr/bin/ld: objs/Test.o: relocation R_AARCH64_ABS32 against `a local > symbol' can not be used when making a shared object > /usr/bin/ld: BFD (GNU Binutils for Debian) 2.31.1 internal error, aborting > at ../../bfd/elfnn-aarch64.c:5546 in elf64_aarch64_final_link_relocate > > With this gentle urging tacked on: > /usr/bin/ld: Please report this bug. > > The object file noted in the message is the product of an assembly file, and > it is not what you might call trivial. 'a local symbol' doesn't get me much > closer to the source of the problem. Test.o is one of 13 object files (12 > from assembly files, one from c) being linked into an executable, not a > shared library. > > > cat /etc/os-release > PRETTY_NAME="Debian GNU/Linux buster/sid" > NAME="Debian GNU/Linux" > ID=debian > HOME_URL="https://www.debian.org/" > SUPPORT_URL="https://www.debian.org/support" > BUG_REPORT_URL="https://bugs.debian.org/" > > > $ ld -V > GNU ld (GNU Binutils for Debian) 2.31.1 > > For what it's worth, the same code builds just fine on open_Suse running > (apparently) the same vintage of ld. > > > ld -V > GNU ld (GNU Binutils; openSUSE Tumbleweed) 2.31.1.20180828-2 > > AO > >