Bug 20315 - ARM: gas generates deprecated relocations.
Summary: ARM: gas generates deprecated relocations.
Status: UNCONFIRMED
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.27
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-29 12:27 UTC by Igor Kudrin
Modified: 2017-02-07 08:51 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Kudrin 2016-06-29 12:27:54 UTC
Steps to reproduce:
$ binutils/configure --target=armv7l-unknown-linux-gnu.
$ make all-gas.
$ cat > test.s << EOF
.text
.globl foo
foo:
  bl foo
EOF
$ as-new test.s -o test.o
$ objdump -dr test.o
test.o:     file format elf32-littlearm

Disassembly of section .text:

00000000 <foo>:
   0:	ebfffffe 	bl	0 <foo>
			0: R_ARM_PC24	foo

According to "ELF for the ARM Architecture", R_ARM_PC24 is deprecated and "Deprecated codes should not be generated by fully conforming toolchains".

This issue also makes gold's testsuite for ARM fail, because gold doesn't support R_ARM_PC24 relocation.
Comment 1 Jan Smets 2017-02-07 08:34:47 UTC
Reconfirmed on master.
Comment 2 Jan Smets 2017-02-07 08:51:54 UTC
ps, you won't have the problem with an -eabi target I think.