Page MenuHomeFreeBSD

Fix build with LLD by removing duplicate symbols already in IBVERBS_1.0.
ClosedPublic

Authored by bdrewery on Apr 10 2017, 6:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 9 2024, 7:59 AM
Unknown Object (File)
Dec 28 2023, 1:48 PM
Unknown Object (File)
Dec 27 2023, 3:19 AM
Unknown Object (File)
Dec 22 2023, 10:44 PM
Unknown Object (File)
Dec 15 2023, 6:07 PM
Unknown Object (File)
Oct 20 2023, 8:46 AM
Unknown Object (File)
Oct 10 2023, 12:43 AM
Unknown Object (File)
Jul 25 2023, 9:39 PM
Subscribers
None

Details

Summary

Sponsored by: Dell EMC Isilon

Test Plan

Requires WITH_OFED=yes to build.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Can you confirm that GNU ld handles the duplicates in the same way (keeping the first definition)?

This revision is now accepted and ready to land.Apr 10 2017, 6:47 PM

Can you confirm that GNU ld handles the duplicates in the same way (keeping the first definition)?

From my amd64 build:

~/git/freebsd # readelf -a OBJ/contrib/ofed/usr.lib/libibverbs/libibverbs.so.1|grep @IBVERB|egrep '(ibv_get_device_list|ibv_free_device_list|ibv_get_device_name|ibv_get_device_guid|ibv_open_device|ibv_close_device)'
    72: 0000000000007dc0   166 FUNC    GLOBAL DEFAULT   12 ibv_get_device_guid@@IBVERBS_1.0 (2)
    73: 0000000000007e70   183 FUNC    GLOBAL DEFAULT   12 ibv_open_device@@IBVERBS_1.0 (2)
    83: 0000000000007da0    10 FUNC    GLOBAL DEFAULT   12 ibv_free_device_list@@IBVERBS_1.0 (2)
   105: 0000000000007f30   112 FUNC    GLOBAL DEFAULT   12 ibv_close_device@@IBVERBS_1.0 (2)
   106: 0000000000007db0    10 FUNC    GLOBAL DEFAULT   12 ibv_get_device_name@@IBVERBS_1.0 (2)
   109: 0000000000007ce0   186 FUNC    GLOBAL DEFAULT   12 ibv_get_device_list@@IBVERBS_1.0 (2)
This revision was automatically updated to reflect the committed changes.