Re: Difficulties with section specifications for function definitions?

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

 



>> It seems that there are more technical dependencies to consider.
> 
> Same here.  There isn't enough info to see what problem you are seeing,
> let alone what causes it.

Thanks for your quick response.

I added the following settings for a test example.


+++ b/drivers/target/loopback/tcm_loop.c
@@ -751,6 +751,7 @@ static int tcm_loop_alloc_sess_cb(struct se_portal_group *se_tpg,
        return 0;
 }
 
+ __attribute__((section ("my_test1")))
 static int tcm_loop_make_nexus(
        struct tcm_loop_tpg *tl_tpg,
        const char *name)
@@ -1054,6 +1055,7 @@ static void tcm_loop_drop_naa_tpg(
 
 /* Start items for tcm_loop_cit */
 
+__attribute__((section ("my_update")))
 static struct se_wwn *tcm_loop_make_scsi_hba(
        struct target_fabric_configfs *tf,
        struct config_group *group,


elfring@Sonne:~/Projekte/Linux/next-patched> size -A drivers/target/loopback/tcm_loop.o | ack '(?:my_update|my_test1)'
my_update           746      0


Do you get any ideas from this information if the software situation should be
different anyhow?

Regards,
Markus



[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