Bug 21098 - [AArch64] ilp32 no warning or error generated for "ldr x24, [x23, :got_lo12:sym]"
Summary: [AArch64] ilp32 no warning or error generated for "ldr x24, [x23, :got_lo12:s...
Status: UNCONFIRMED
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.28
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-31 23:44 UTC by Joel Jones
Modified: 2017-01-31 23:44 UTC (History)
0 users

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 Joel Jones 2017-01-31 23:44:37 UTC
crb6 % cat ldr-reloc.s
    ldr x24, [x23, :got_lo12:sym]
    ldr w24, [x23, :got_lo12:sym]
crb6 % as -mabi=ilp32 -o ldr-reloc.o ldr-reloc.s
crb6 % objdump -dr ldr-reloc.o

ldr-reloc.o:     file format elf32-littleaarch64


Disassembly of section .text:

00000000 <.text>:
   0:	f94002f8 	ldr	x24, [x23]
			0: R_AARCH64_P32_LD32_GOT_LO12_NC	sym
   4:	b94002f8 	ldr	w24, [x23]
			4: R_AARCH64_P32_LD32_GOT_LO12_NC	sym
crb6 % as --version
GNU assembler (GNU Binutils) 2.28.51.20170130
Copyright (C) 2017 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `aarch64-unknown-linux-gnu'.