[U-Boot] [PATCH 2/2] RFC: Let linker create phy array

Albert ARIBAUD albert.u.boot at aribaud.net
Sun Feb 5 14:26:57 CET 2012


Hi Mike,

Le 05/02/2012 04:38, Mike Frysinger a écrit :
> On Saturday 04 February 2012 22:02:46 Troy Kisky wrote:
>> --- a/drivers/net/phy/broadcom.c
>> +++ b/drivers/net/phy/broadcom.c
>>
>> -static struct phy_driver BCM5461S_driver = {
>> +struct phy_driver BCM5461S_driver __phy_entry = {
>
> why do you have to remove the static ?  that shouldn't affect the section name
> that it gets placed into.
>
>> --- a/include/phy.h
>> +++ b/include/phy.h
>>
>> +extern struct phy_driver __phy_entry_start, __phy_entry_end;
>
> linker symbols should be declared like:
> 	extern char __phy_entry_start[];

Why should they?

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list