Use dlsym(RTLD_DEFAULT) instead of dlsym(dlopen(NULL)) in aesgcmchromium.patch.

This patch updates the dynamic lookup of NSS symbols to use
dlsym(RTLD_DEFAULT) instead of dlsym on the dlopen(NULL) handle.

The latter doesn't work if the binary that does the dynamic lookup was
loaded dynamically itself (as dlopen(NULL) gives access only to the
symbols loaded at the start of the program).

Note that RTLD_DEFAULT requires setting _GNU_SOURCE.

BUG=462203

Review URL: https://codereview.chromium.org/962593002

Cr-Original-Commit-Position: refs/heads/master@{#318863}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f7302e6c7f955f11679ab844cfe3d326f47bb0dc
2 files changed
tree: 8a6788163a3ef2abc16c218567411d29b6de354e
  1. patches/
  2. ssl/
  3. LICENSE
  4. OWNERS
  5. README.chromium
  6. ssl.gyp