Re: V4 [PATCH 2/3] Warn used and not used symbols in section with the same name

2020-12-15 Thread Jeff Law via Gcc-patches
On 12/15/20 10:30 AM, H.J. Lu wrote: > When SECTION_RETAIN is used, issue a warning when a symbol without used > attribute and a symbol with used attribute are placed in the section with > the same name, like > > int __attribute__((used,section(".data.foo"))) foo2 = 2; > int __attribute__((secti

V4 [PATCH 2/3] Warn used and not used symbols in section with the same name

2020-12-15 Thread H.J. Lu via Gcc-patches
When SECTION_RETAIN is used, issue a warning when a symbol without used attribute and a symbol with used attribute are placed in the section with the same name, like int __attribute__((used,section(".data.foo"))) foo2 = 2; int __attribute__((section(".data.foo"))) foo1 = 1; since assembler will p