dt_link.c (4685:ea7dea986cfb) dt_link.c (5483:0f740bb7c751)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 1342 unchanged lines hidden (view full) ---

1351 s = (char *)data_str->d_buf + fsym.st_name;
1352 r = NULL;
1353
1354 if (GELF_ST_BIND(fsym.st_info) == STB_LOCAL) {
1355 dsym = fsym;
1356 dsym.st_name = istr;
1357 dsym.st_info = GELF_ST_INFO(STB_GLOBAL,
1358 STT_FUNC);
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 1342 unchanged lines hidden (view full) ---

1351 s = (char *)data_str->d_buf + fsym.st_name;
1352 r = NULL;
1353
1354 if (GELF_ST_BIND(fsym.st_info) == STB_LOCAL) {
1355 dsym = fsym;
1356 dsym.st_name = istr;
1357 dsym.st_info = GELF_ST_INFO(STB_GLOBAL,
1358 STT_FUNC);
1359 dsym.st_other = ELF64_ST_VISIBILITY(STV_HIDDEN);
1359 dsym.st_other =
1360 ELF64_ST_VISIBILITY(STV_ELIMINATE);
1360 (void) gelf_update_sym(data_sym, isym, &dsym);
1361
1362 r = (char *)data_str->d_buf + istr;
1363 istr += 1 + sprintf(r, dt_symfmt,
1364 dt_symprefix, objkey, s);
1365 isym++;
1366 assert(isym <= nsym);
1367

--- 239 unchanged lines hidden ---
1361 (void) gelf_update_sym(data_sym, isym, &dsym);
1362
1363 r = (char *)data_str->d_buf + istr;
1364 istr += 1 + sprintf(r, dt_symfmt,
1365 dt_symprefix, objkey, s);
1366 isym++;
1367 assert(isym <= nsym);
1368

--- 239 unchanged lines hidden ---