This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH v3][AArch64] Fix symbol offset limit
- From: Wilco Dijkstra <Wilco dot Dijkstra at arm dot com>
- To: Richard Earnshaw <Richard dot Earnshaw at arm dot com>, James Greenhalgh <James dot Greenhalgh at arm dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, nd <nd at arm dot com>, Marcus Shawcroft <Marcus dot Shawcroft at arm dot com>
- Date: Thu, 15 Jun 2017 16:55:20 +0000
- Subject: Re: [PATCH v3][AArch64] Fix symbol offset limit
- Authentication-results: sourceware.org; auth=none
- Authentication-results: gcc.gnu.org; dkim=none (message not signed) header.d=none;gcc.gnu.org; dmarc=none action=none header.from=arm.com;
- Nodisclaimer: True
- References: <AM5PR0802MB26102B496BBC43761EDFC7B983EB0@AM5PR0802MB2610.eurprd08.prod.outlook.com> <896d038e-f19f-d95e-2213-f3360ba71b28@arm.com> <AM5PR0802MB2610C7C9B721D04F8DC1A3B683EC0@AM5PR0802MB2610.eurprd08.prod.outlook.com> <AM5PR0802MB26107A178F34C4110B35FD6083FF0@AM5PR0802MB2610.eurprd08.prod.outlook.com> <VI1PR0802MB262163954412870CCA1538EF83820@VI1PR0802MB2621.eurprd08.prod.outlook.com> <AM5PR0802MB2610EA1E438B71D26C6CBA06837C0@AM5PR0802MB2610.eurprd08.prod.outlook.com> <AM5PR0802MB261002EBFBF54A2368DD74C5831B0@AM5PR0802MB2610.eurprd08.prod.outlook.com> <VI1PR0802MB262180A56B715BD564EA12DA83C20@VI1PR0802MB2621.eurprd08.prod.outlook.com> <20170614140702.GB8010@arm.com>,<31845e36-14f3-eb1e-ef11-5bcf70a11b15@arm.com>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Richard Earnshaw wrote:
> Yes, I still believe that this is a bug in the way we've documented the
> -mcmodel=tiny and -mcmodel=small options.
In what way could this possibly be a documentation bug? It's not at all related
to the size of a binary. There is no limit to the offset you can apply to a symbol,
I can write int a; int *p = &a + 0x80000000; and GCC is happy to create a
relocation with that offset.
Wilco