RE: gcc question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Florian,

I build "device driver code" in userspace code, but using the same headers from kernel source code.

In the driver code, we include "linux/pci.h" header, and through include chain arch_static_branch() got pulling through inline functions.

Regards,
Hon

-----Original Message-----
From: Florian Weimer <fweimer@xxxxxxxxxx> 
Sent: Monday, September 13, 2021 12:43 PM
To: HON LUU <hon@xxxxxxxxxxxxxxxx>
Cc: Segher Boessenkool <segher@xxxxxxxxxxxxxxxxxxx>; gcc-help@xxxxxxxxxxx
Subject: Re: gcc question

* HON LUU:

> Yes, understood the point. I would have to "not using -fPIC" if I 
> could not found any way out.  Anyway if I willing to change the asm 
> function to change the constraint to something different from "i"
> (immediate), I wonder if the question is still proper.

Are you building userspace code or kernel code?  Why do you end up compiling arch_static_branch?

Thanks,
Florian





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux