This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Remove ioperm etc. support for arm


* 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',


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]