This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, PR 60158] Generate .fixup sections for .data.rel.ro.local entries.
- From: Alan Modra <amodra at gmail dot com>
- To: "rohitarulraj at freescale dot com" <rohitarulraj at freescale dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, "dje dot gcc at gmail dot com" <dje dot gcc at gmail dot com>, Edmar Wienskoski <edmar at freescale dot com>
- Date: Sat, 26 Apr 2014 15:52:13 +0930
- Subject: Re: [Patch, PR 60158] Generate .fixup sections for .data.rel.ro.local entries.
- Authentication-results: sourceware.org; auth=none
- References: <d0a7b88818ff4272a92e2cd6b49f12f5 at DM2PR03MB352 dot namprd03 dot prod dot outlook dot com>
On Fri, Apr 25, 2014 at 02:57:38PM +0000, rohitarulraj@freescale.com wrote:
> Source file: gcc-4.8.2/gcc/varasm.c
> @@ -7120,7 +7120,7 @@
> if (CONSTANT_POOL_ADDRESS_P (symbol))
> {
> desc = SYMBOL_REF_CONSTANT (symbol);
> output_constant_pool_1 (desc, 1); ------------- (A)
> offset += GET_MODE_SIZE (desc->mode);
I think the reason 1 is passed here for align is that with
-fsection-anchors, in output_object_block we've already laid out
everything in the block, assigning offsets from the start of the
block. Aligning shouldn't be necessary, because we've already done
that.. OTOH, it shouldn't hurt to align again.
--
Alan Modra
Australia Development Lab, IBM