This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Remove ioperm etc. support for arm
- From: Florian Weimer <fweimer at redhat dot com>
- To: Aaro Koskinen <aaro dot koskinen at iki dot fi>
- Cc: Phil Blundell <pb at pbcl dot net>, libc-alpha at sourceware dot org
- Date: Wed, 26 Jun 2019 15:48:08 +0200
- Subject: Re: [PATCH] Remove ioperm etc. support for arm
- References: <87o93lo3y9.fsf@oldenburg2.str.redhat.com> <20190529135135.rt3c5fhhser7fik6@hetzner.pbcl.net> <875zptqrwx.fsf@oldenburg2.str.redhat.com> <20190529141820.5nny64ugrvqyzqgd@hetzner.pbcl.net> <87r28hpb0l.fsf_-_@oldenburg2.str.redhat.com> <20190529184028.GC24195@darkstar.musicnaut.iki.fi> <87ef4hp08c.fsf@oldenburg2.str.redhat.com> <20190529201227.GD24195@darkstar.musicnaut.iki.fi> <87imttnewj.fsf@oldenburg2.str.redhat.com> <20190606215312.GB11598@darkstar.musicnaut.iki.fi>
* Aaro Koskinen:
> Hi,
>
> On Wed, May 29, 2019 at 11:12:44PM +0200, Florian Weimer wrote:
>> >> Maybe we used to test ARMv4, and GCC changed under us without us
>> >> noticing?
>> >
>> > Don't know if they have ever changed that, but it would probably make
>> > sense to add flags to build-many-glibcs.py to build for the lowest
>> > supported arch level.
>>
>> Indeed.
>>
>> > ARMv4 is already deprecated in GCC, so probably it's OK to remove this
>> > stuff from glibc. Personally I'm concerned about armv4t support as I'm
>> > running such systems still with modern glibc.
>>
>> Interesting. Could you perhaps suggest changes to build-many-glibcs.py
>> so that we can build an armv4t target as part of the regular runs?
>
> Just building with -march=armv4t should be enough for a start.
This architecture doesn't have its own target triplet, right?
With the patch below, I get this in csu/init-first.os:
00000000 <__libc_init_first>:
0: e12fff1e bx lr
0: R_ARM_V4BX *ABS*
But after linking, get this in libc.so.6:
000175a0 <__libc_init_first>:
175a0: e12fff1e bx lr
Does this mean I need to pass some other flags as well?
Sorry, I'm really not familiar with Arm at all.
Thanks,
Florian
build-many-glibcs.py: Add v4t variant for arm-linux-gnueabi
2019-06-26 Florian Weimer <fweimer@redhat.com>
* scripts/build-many-glibcs.py (Context.add_all_configs): Add v4t
variant for arm-linux-gnueabi.
diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py
index c5821df25e..dacd116f8e 100755
--- a/scripts/build-many-glibcs.py
+++ b/scripts/build-many-glibcs.py
@@ -158,7 +158,9 @@ class Context(object):
self.add_config(arch='alpha',
os_name='linux-gnu')
self.add_config(arch='arm',
- os_name='linux-gnueabi')
+ os_name='linux-gnueabi',
+ extra_glibcs=[{'variant': 'v4t',
+ 'ccopts': '-march=armv4t'}])
self.add_config(arch='armeb',
os_name='linux-gnueabi')
self.add_config(arch='armeb',