[PATCH v4 1/5] elf: Add SFrame support to _dl_find_object function

Claudiu Zissulescu-Ianculescu claudiu.zissulescu-ianculescu@oracle.com
Thu Apr 17 14:30:08 GMT 2025


Hi Andreas,

On 4/17/25 2:50 PM, Andreas Schwab wrote:
> On Apr 17 2025, claudiu.zissulescu-ianculescu@oracle.com wrote:
> 
>> diff --git a/elf/dl-find_object.h b/elf/dl-find_object.h
>> index e433ff8740..761a422d86 100644
>> --- a/elf/dl-find_object.h
>> +++ b/elf/dl-find_object.h
>> @@ -26,6 +26,18 @@
>>  #include <stdbool.h>
>>  #include <stdint.h>
>>  
>> +
>> +/* Type used to handle 64bit flag bits into a 32bit machine.  */
>> +typedef union
>> +{
>> +  __extension__ unsigned long long int __value64;
>> +  struct
>> +  {
>> +    unsigned int __low;
>> +    unsigned int __high;
>> +  } __value32;
>> +} __atomic_wide_var;
> 
> That's not endian safe.
> 

I've used bits/atomic_wide_counter.h as an inspiration.


More information about the Libc-alpha mailing list