https://sourceware.org/bugzilla/show_bug.cgi?id=26090
Bug ID: 26090 Summary: Incorrect exclude.exp Product: binutils Version: 2.35 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com Target Milestone: --- exclude.exp has if { [ld_link $ld tmpdir/exclude.so "--exclude-libs libexclude.a --shared tmpdir/exclude1.o -Ltmpdir -lexclude"] && [ld_nm $nm "-D" tmpdir/exclude.so] && ! [info exists nm_output(exclude_common)] && ! [info exists nm_output(exclude_sym)] } { pass $test5 } else { fail $test5 } tic6x-elf has ret->elf.is_relocatable_executable = 1; /* True if this target has relocatable executables, so needs dynamic section symbols. */ bfd_boolean is_relocatable_executable; "nm -D" reports: 02001380 B _HEAP_MAX 00001380 B _HEAP_START 02101380 B _STACK_START 0000137c b exclude_common 0000126c D include_sym FAIL: ld exclude symbols from archive - --exclude-libs libexclude It is wrong to check if exclude_common is in the dynamic symbol table without checking its binding. -- You are receiving this mail because: You are on the CC list for the bug.