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)
Tue, Nov 26, 12:15 PM
Unknown Object (File)
Sun, Nov 24, 12:16 AM
Unknown Object (File)
Nov 22 2024, 10:38 PM
Unknown Object (File)
Nov 22 2024, 8:11 AM
Unknown Object (File)
Nov 20 2024, 3:28 AM
Unknown Object (File)
Nov 19 2024, 10:27 AM
Unknown Object (File)
Nov 19 2024, 3:07 AM
Unknown Object (File)
Oct 27 2024, 6:31 AM
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.